CVEfocus › CVE database › CVE-2025-54798

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

CVSS 2.5 LowEPSS 0.5% (higher than 37% of CVEs)Published 2025-08-07Updated 2025-11-03Assigner: GitHub_M

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.

CWE-59

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
28Fix pending
3Under investigation
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-tmpFix pendingUBUNTU-CVE-2025-54798
Ubuntu 26.04node-tmpUnder investigationUBUNTU-CVE-2025-54798
Ubuntu 25.10node-tmpWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-54798
Ubuntu 24.04node-tmpUnder investigationUBUNTU-CVE-2025-54798
Ubuntu 22.04node-tmpUnder investigationUBUNTU-CVE-2025-54798
Ubuntu 20.04node-tmpFix pendingUBUNTU-CVE-2025-54798
Ubuntu 18.04node-tmpFix pendingUBUNTU-CVE-2025-54798
Ubuntu 16.04node-tmpFix pendingUBUNTU-CVE-2025-54798
Debian 14node-tmpFixed0.2.2+dfsg+~0.2.3-1.1DEBIAN-CVE-2025-54798
Debian 13node-tmpFixed0.2.2+dfsg+~0.2.3-1.1~deb13u1DEBIAN-CVE-2025-54798
Debian 12node-tmpFixed0.2.2+dfsg+~0.2.3-1.1~deb12u1DEBIAN-CVE-2025-54798
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 9polkitFix pending
Fix deferred
Red Hat Enterprise Linux 9polkit-develFix pending
Fix deferred
Red Hat Enterprise Linux 9polkit-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9polkit-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-azure-monitorFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-cloudwatchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-elasticsearchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-graphiteFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-influxdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-lokiFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mssqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mysqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-opentsdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-postgresFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-prometheusFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-stackdriverFix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
npm librarytmpFixed0.2.4GHSA-52f5-9888-hmc6

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.