CVE-2024-12905

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-12905
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-12905.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-12905
Aliases
Related
Published
2025-03-27T17:15:53Z
Modified
2025-04-02T11:45:37.646292Z
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / node-tar-fs

Package

Name
node-tar-fs
Purl
pkg:deb/debian/node-tar-fs?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.1.1-2
2.1.1-3
2.1.1-4
2.1.1-6

3.*

3.0.8+~cs2.0.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / node-tar-fs

Package

Name
node-tar-fs
Purl
pkg:deb/debian/node-tar-fs?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.1.1-6

3.*

3.0.8+~cs2.0.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-tar-fs

Package

Name
node-tar-fs
Purl
pkg:deb/debian/node-tar-fs?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.8+~cs2.0.4-1

Affected versions

2.*

2.1.1-6

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/mafintosh/tar-fs

Affected ranges

Type
GIT
Repo
https://github.com/mafintosh/tar-fs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.7
v0.1.8
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.4.0
v0.4.1
v0.5.0
v0.5.1
v0.5.2

v1.*

v1.0.0
v1.1.0
v1.10.0
v1.11.0
v1.11.1
v1.12.0
v1.13.0
v1.13.1
v1.13.2
v1.14.0
v1.15.0
v1.15.1
v1.15.2
v1.15.3
v1.16.0
v1.16.1
v1.16.2
v1.16.3
v1.2.0
v1.3.0
v1.4.0
v1.4.1
v1.4.2
v1.5.0
v1.5.1
v1.6.0
v1.7.0
v1.8.0
v1.8.1
v1.9.0

v2.*

v2.0.0
v2.0.1
v2.1.0
v2.1.1

v3.*

v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6