CVE-2024-12905
published high CVSS 3.1 · 7.5tar-fs: link following and path traversal via maliciously crafted tar file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | tar-fs0.0.0 to < 1.16.4 (affected · semver); changes: unaffected at 1.16.4 · 2.0.0 to < 2.1.2 (affected · semver); changes: unaffected at 2.1.2 · 3.0.0 to < 3.0.8 (affected · semver); changes: unaffected at 3.0.8 · Other versions: unaffected | Version-specific | Not stated | seal |
| Debian | bullseye | node-tar-fs | Advisory build | 2.1.3-0+deb11u1 | DLA-4214-1 |
| Ubuntu | jammy | node-tar-fs | Advisory build | 2.1.1-6ubuntu0.22.04.1~esm1 | USN-8367-1 |
| Ubuntu | noble | node-tar-fs | Advisory build | 2.1.1-6ubuntu0.24.04.1~esm1 | USN-8367-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- seal · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tar-fs | 0.0.0 to < 1.16.4 (affected · semver); changes: unaffected at 1.16.42.0.0 to < 2.1.2 (affected · semver); changes: unaffected at 2.1.23.0.0 to < 3.0.8 (affected · semver); changes: unaffected at 3.0.8Default: unaffected | seal · cna |
Weaknesses
2- CWE-59 CWE-59 Improper Link Resolution Before File Access ('Link Following')
- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3Provider assertions
3seal · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c2bb107c9714ca003d0354695b3d8dc42fa7870a36644ad8cfdf1896157447bb
- Ingested
- 23 Sep 2026, 08:17:33 UTC
- Source record
- Official CVE record