CVE-2024-12905
A public proof of concept exists; no exploitation attested.
- Published2025-03-27
- Fixed in3.0.7 · 2.1.2 · 1.16.4
- WeaknessCWE-22 · CWE-59
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package. This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.
Timeline
dates in UTC- 2025-03-2717:15CVE publishedNVD
- 2025-04-22Exploit-DB entryExploit-DB
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.0, < 3.0.7 | 3.0.7 | OSV |
| 2.x | ≥ 2.0.0, < 2.1.2 | 2.1.2 | OSV |
| 1.16 | < 1.16.4 | 1.16.4 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As seal, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- tar-fsother versions: not affectedAffected
- ≥ 0.0.0, < 1.16.4fixed in 1.16.4semver
- ≥ 2.0.0, < 2.1.2fixed in 2.1.2semver
- ≥ 3.0.0, < 3.0.8fixed in 3.0.8semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-04-20
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/tar-fsRoot:npmall versions · fixed in 3.0.6-root.io.1
- @rootio/tar-fsRoot:npmall versions · fixed in 2.0.0-root.io.1
- @rootio/tar-fsRoot:npmall versions · fixed in 2.0.0-root.io.2
- @rootio/tar-fsRoot:npmall versions · fixed in 2.0.0-root.io.3
- @rootio/tar-fsRoot:npmall versions · fixed in 2.0.0-root.io.4
- @rootio/tar-fsRoot:npmall versions · fixed in 2.1.2-root.io.1
- @rootio/tar-fsRoot:npmall versions · fixed in 2.1.2-root.io.2
- @rootio/tar-fsRoot:npmall versions · fixed in 3.0.6-root.io.2
27 more package ranges on OSV.dev
Vendor advisories
tar-fs: link following and path traversal via maliciously crafted tar file
ceph-base as a component of Red Hat Ceph Storage 7 · ceph-common as a component of Red Hat Ceph Storage 7 · ceph-fuse as a component of Red Hat Ceph Storage 7 · +80 more
Red Hat Security Advisory: Red Hat Ceph Storage
Red Hat Security Advisory: Red Hat Developer Hub 1.5.2 release.
Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.21.0 release
Red Hat Security Advisory: Red Hat Developer Hub 1.6.0 release.
Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.20.0 release
Fix
- Update tar-fs to 3.0.7 · 2.1.2 · 1.16.4
- Vendor fix Red Hat Product Security RHSA-2026:33154 · 3 productsThe container images provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
- Vendor fix Red Hat Product Security RHSA-2025:8540 · 1 productFor more about Red Hat Developer Hub, see References links
- Vendor fix Red Hat Product Security RHSA-2025:8244 · 40 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- No fix available, says the vendor Red Hat Product Security CVE-2024-12905 · 83 productsAffected
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01theMcSam/CVE-2024-12905-PoC
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-03-27
- CNACVSS 3.17.5known since 2026-10-23
- CNAweakness (CWE)CWE-22, CWE-59known since 2026-10-23
- FIRST EPSSEPSS score2.3 %2026-12-03
- PoC-in-GitHubproof of concept1known since 2026-11-01
- Exploit-DBdetectionread 2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2025-03-28
Identifiers
- AZL-59367same flawAzure Linux · MIT
- CGA-2fcc-879v-396wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-95xw-rfjq-5q5xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c24r-fvjx-r883same flawChainguard · CC-BY-NC-ND-4.0
- CGA-g5w7-74j5-ph75same flawChainguard · CC-BY-NC-ND-4.0
- CGA-g6qj-pgw7-hfhwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hvv5-qv4g-h4hwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p6wg-72q8-rw95same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p7hq-5vmg-2q2qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pcvf-6266-gxjmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qh6r-79wc-52g6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rg69-52v8-cpvhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v2wf-h6g7-mw99same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wwf3-29h6-p2r4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x455-f45g-v7cfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xgp6-qcxh-9c69same flawChainguard · CC-BY-NC-ND-4.0
- CGA-xr38-j7cj-4jfhsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-54315same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-pq67-2wwv-3xjxsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-mgrc-433g-jf2qsame flawMinimOS · LicenseRef-unstated
- MINI-vr9x-j54j-rvwpsame flawMinimOS · LicenseRef-unstated
- DLA-4214-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0194advisory covering several CVEsMageia · LicenseRef-unstated
- USN-8367-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Published
- 2025-03-27
- Last modified
- 2026-06-17
- NVD status
- Deferred
- GitHub advisory
- GHSA-pq67-2wwv-3xjx
Frequently asked questions
What is CVE-2024-12905?
Is CVE-2024-12905 actively exploited?
What is the CVSS score for CVE-2024-12905?
Running tar-fs? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-29415same productnode-ip: Incomplete fix for CVE-2023-42282
- CVE-2025-64756same product
- CVE-2024-21512same productmysql2: vulnerable to Prototype Pollution due to improper user input sanitization
- CVE-2026-4800same product
- CVE-2024-21508same product
- CVE-2018-20835same product
- CVE-2024-28176same product
- CVE-2025-13465same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-pq67-2wwv-3xjx
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0