CVE-2025-54798: tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter
Affects tmpSource GCVE Database
Not known to be exploited · CVSS 2.5 Low : upgrade to 0.2.4 when convenient.
Data as of 30 Oct 2026, 01:56 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 2.5 |
|---|
- Patch
- Available – fixed in 0.2.4
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade tmp to 0.2.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmtmp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to tmp version 0.2.4 or later, where the vulnerability is fixed by properly resolving symbolic links in the 'dir' parameter. No other mitigation is required as the fix addresses the root cause.
Description
The tmp package version 0.2.3 contains a vulnerability that allows arbitrary temporary file or directory writes outside the intended temporary directory via a symbolic link in the 'dir' parameter. This occurs because the path resolution function does not properly resolve symbolic links, enabling attackers to bypass directory restrictions. The issue is fixed in version 0.2.4.
References
- github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-54798 (opens in a new tab)
- github.com/raszi/node-tmp/issues/207 (opens in a new tab)
- github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b (opens in a new tab)
- github.com/raszi/node-tmp (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/08/msg00007.html (opens in a new tab)