# CVE-2025-54798: tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter

- Severity: Low 2.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-06T17:06:04.000Z
- Modified: 2026-09-10T03:50:26.594Z
- Also known as: GHSA-52f5-9888-hmc6
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- raszi node-tmp: < 0.2.4
- tmp (npm): before 0.2.4
- raszi tmp: before 0.2.4

## Every score

- GitHub_M: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6> (exploit, vendor-advisory, web)
- <https://github.com/raszi/node-tmp/issues/207> (issue-tracking, patch, web)
- <https://github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00007.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54798> (advisory)
- <https://github.com/raszi/node-tmp> (package)

## Sources

- CVE List: [CVE-2025-54798](https://www.cve.org/CVERecord?id=CVE-2025-54798), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-52f5-9888-hmc6](https://github.com/advisories/GHSA-52f5-9888-hmc6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-54798](https://nvd.nist.gov/vuln/detail/CVE-2025-54798), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54798 · Whole record: https://cve.day/CVE-2025-54798.json · Rebuilt by cve.day 2026-11-25T22:59:02.174Z
