Skip to main content
Public proof of conceptFix available

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?

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
  1. 2025-03-2717:15CVE publishedNVD
  2. 2025-04-22Exploit-DB entryExploit-DB

Versions per branch

OSV
tar-fs
BranchAffectedFixed in
3.0≥ 3.0.0, < 3.0.73.0.7
2.x≥ 2.0.0, < 2.1.22.1.2
1.16< 1.16.41.16.4

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 affected

    https://registry.npmjs.org

    Affected
    • ≥ 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

  • CVE-2024-12905 Red Hat Product Security48 products fixed · 83 known affected

    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

  • RHSA-2026:33154 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage

  • RHSA-2025:8540 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.5.2 release.

  • RHSA-2025:8244 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.21.0 release

  • RHSA-2025:7626 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.6.0 release.

  • RHSA-2025:3932 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.20.0 release

Full record on NVD

Fix

  1. Update tar-fs to 3.0.7 · 2.1.2 · 1.16.4
  2. 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.
  3. Vendor fix Red Hat Product Security RHSA-2025:8540 · 1 productFor more about Red Hat Developer Hub, see References links
  4. 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
  5. 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
Exploit-DB
EDB-52268
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2024-12905 actively exploited?

Active exploitation of CVE-2024-12905 has not been confirmed. Its EPSS score was 2.3% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-12905?

CVE-2024-12905 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

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

Sources for this record