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

Exp

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.

Published: 2025-08-06 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-54798 is rated Exploit Available (50/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.31%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-54798

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-54798

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.47% 0.31% -0.16%
2 2026-06-03 0.15% 0.47% +0.32%
3 2026-05-03 0.15%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-54798

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
2.5 3.1 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
1.0 1.4 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]

Weakness enumeration for CVE-2025-54798

GitHub Security Advisory for CVE-2025-54798

GHSA-52f5-9888-hmc6 · Severity: low · Ecosystem: npm — tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter

OS Trackers for CVE-2025-54798

vendor priority summary link
debian not yet assigned CVE-2025-54798 not yet assigned priority: Debian including 1 source packages (node-tmp), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-54798
redhat low https://access.redhat.com/security/cve/CVE-2025-54798
suse medium CVE-2025-54798 severity moderate: SUSE including 15 source package names (cockpit-podman, jupyter-bqplot-jupyterlab-0.5.46-13.1, …), 24 product×package rows across 11 product lines (SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, … (11 product lines)): Fixed 14, Known Not Affected 10. https://www.suse.com/security/cve/CVE-2025-54798/
ubuntu medium CVE-2025-54798 medium priority: Ubuntu including 1 source packages (node-tmp), 8 status rows across 8 suites (bionic, focal, jammy, noble, plucky, questing, upstream, xenial): needs-triage 7, ignored 1. https://ubuntu.com/security/CVE-2025-54798

Affected software / configurations for CVE-2025-54798

Vendor Product Version Raw CPE
raszi tmp < 0.2.4 cpe:2.3:a:raszi:tmp:*:*:*:*:*:node.js:*:*

References for CVE-2025-54798

cvelogic Threat Intelligence