CVE-2024-12905

unknown
Published 2025-03-27 ยท Modified 2026-02-04
CVSS v3
โ€”
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
1.0

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.

Predictions

Exploit likelihood
30%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-52268 local linux
cybersploit ยท 2025-04-22

tar-fs 3.0.0 - Arbitrary File Write/Overwrite

Source code queued for fetch โ€” refresh in a moment.

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 3.0.8+~cs2.0.4-1
sid Fixed 3.0.8+~cs2.0.4-1
forky Fixed 3.0.8+~cs2.0.4-1
bullseye Fixed 2.1.3-0+deb11u1
bookworm Fixed 2.1.3-0+deb12u1

Package impact

EcosystemPackageVulnerableFixed
npm npmtar-fs<1.16.41.16.4
npm npmtar-fs>=2.0.0,<2.1.22.1.2
npm npmtar-fs>=3.0.0,<3.0.73.0.7

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.