CVE-2025-54798 tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter
MediumCVSS 5.3
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-tmp(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-tmp(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-tmp(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-tmp(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-tmp(Debian 12) | < 0.2.2+dfsg+~0.2.3-1.1~deb12u1; = 0.2.2+dfsg+~0.2.3-1 | 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | Fixed |
| debian/node-tmp(Debian 13) | < 0.2.2+dfsg+~0.2.3-1.1~deb13u1; = 0.2.2+dfsg+~0.2.3-1; = 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | 0.2.2+dfsg+~0.2.3-1.1~deb13u1 | Fixed |
| debian/node-tmp(Debian 14) | < 0.2.2+dfsg+~0.2.3-1.1; = 0.2.2+dfsg+~0.2.3-1; = 0.2.2+dfsg+~0.2.3-1.1~deb12u1; = 0.2.2+dfsg+~0.2.3-1.1~deb13u1 | 0.2.2+dfsg+~0.2.3-1.1 | Fixed |
| npm tmp(npm) | < 0.2.4; <= 0.2.3 | 0.2.4 | Fixed |
| raszi tmp | < 0.2.4 | 0.2.4 | Fixed |
| raszi node-tmp | = < 0.2.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-tmp(Debian:12) | < 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | 0.2.2+dfsg+~0.2.3-1.1~deb12u1 |
| debian/node-tmp(Debian:12) | = 0.2.2+dfsg+~0.2.3-1 | No fix listed |
| debian/node-tmp(Debian:13) | < 0.2.2+dfsg+~0.2.3-1.1~deb13u1 | 0.2.2+dfsg+~0.2.3-1.1~deb13u1 |
| debian/node-tmp(Debian:13) | = 0.2.2+dfsg+~0.2.3-1 | No fix listed |
| debian/node-tmp(Debian:13) | = 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | No fix listed |
| debian/node-tmp(Debian:14) | < 0.2.2+dfsg+~0.2.3-1.1 | 0.2.2+dfsg+~0.2.3-1.1 |
| debian/node-tmp(Debian:14) | = 0.2.2+dfsg+~0.2.3-1 | No fix listed |
| debian/node-tmp(Debian:14) | = 0.2.2+dfsg+~0.2.3-1.1~deb12u1 | No fix listed |
| debian/node-tmp(Debian:14) | = 0.2.2+dfsg+~0.2.3-1.1~deb13u1 | No fix listed |
| npm tmp(npm) | <= 0.2.3 | No fix listed |
| raszi node-tmp | = < 0.2.4 | No fix listed |
| ubuntu/node-tmp(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-tmp(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-tmp(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-tmp(Ubuntu:26.10) | All versions | No fix listed |
| raszi tmp | < 0.2.4 | 0.2.4 |
| npm tmp(npm) | < 0.2.4 | 0.2.4 |
References
- Debian Security Tracker CVE-2025-54798 vendor-advisory
- https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 exploit vendor-advisory
- https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/raszi/node-tmp/issues/207 issue-tracking patch
- lists.debian.org
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product