CVE-2025-54798 Details
Description
tmp is a temporary file and directory creator for node.js. In versions 0.2.3 and below, tmp is vulnerable to an arbitrary temporary file / directory write via symbolic link dir parameter. This is fixed in version 0.2.4.
A vulnerability exists in the tmp library for Node.js, specifically in versions prior to 0.2.3. The issue allows for arbitrary writing of temporary files or directories through the symbolic link 'dir' parameter. This vulnerability arises because the 'dir' option can be made to point to a location outside the standard temporary directory, bypassing safety checks. The problem is rooted in the '_resolvePath' function, which does not correctly handle symbolic links when determining file paths. As a result, it is possible to exploit this flaw by creating a symlink that points to a directory outside the intended temporary directory, leading to unauthorized file writes.
Users should update to tmp version 0.2.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 | CISA-ADP | ExploitVendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html | CVE | |
| https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b | [email protected] | Patch |
| https://github.com/raszi/node-tmp/issues/207 | [email protected] | Issue TrackingPatch |
| https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| raszi tmp | < 0.2.4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 9, 2025 | Initial Analysis | [email protected] |
| Aug 7, 2025 | CVE Modified | CISA-ADP |
| Aug 7, 2025 | New CVE Received | [email protected] |