Path traversal in tar-fs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 4 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | tar-fs | 0.0.0 to before 1.16.4; 2.0.0 to before 2.1.2; 3.0.0 to before 3.0.8 | 1.16.4, 2.1.2, 3.0.8 | Patch available | CNA |
| — | tar-fs (npm) | before 1.16.4 | 1.16.4 | Patch available | GHSA-pq67-2wwv-3xjx |
| — | tar-fs (npm) | 2.0.0 to before 2.1.2 | 2.1.2 | Patch available | GHSA-pq67-2wwv-3xjx |
| — | tar-fs (npm) | 3.0.0 to before 3.0.7 | 3.0.7 | Patch available | GHSA-pq67-2wwv-3xjx |
- tar-fs Vendor— Affected 0.0.0 to before 1.16.4; 2.0.0 to before 2.1.2; 3.0.0 to before 3.0.8 Fixed in 1.16.4, 2.1.2, 3.0.8 Patch available CNA
- tar-fs (npm) Vendor— Affected before 1.16.4 Fixed in 1.16.4 Patch available GHSA-pq67-2wwv-3xjx
- tar-fs (npm) Vendor— Affected 2.0.0 to before 2.1.2 Fixed in 2.1.2 Patch available GHSA-pq67-2wwv-3xjx
- tar-fs (npm) Vendor— Affected 3.0.0 to before 3.0.7 Fixed in 3.0.7 Patch available GHSA-pq67-2wwv-3xjx
Remediation
- Fix · CNA tar-fs Fixed in 1.16.4, 2.1.2, 3.0.8
- Fix · GHSA-pq67-2wwv-3xjx tar-fs (npm) Fixed in 1.16.4 Advisory →
- Fix · GHSA-pq67-2wwv-3xjx tar-fs (npm) Fixed in 2.1.2 Advisory →
- Fix · GHSA-pq67-2wwv-3xjx tar-fs (npm) Fixed in 3.0.7 Advisory →
Red Hat 5 advisories
- RHSA-2026:33154 Released 2026-06-29 · Red Hat rating ImportantRed Hat Ceph Storage
- Red Hat Ceph Storage 7.1 registry.redhat.io/rhceph/grafana-rhel9, registry.redhat.io/rhceph/rhceph-7-rhel9
- RHSA-2025:8540 Released 2025-06-04 · Red Hat rating ImportantRed Hat Developer Hub 1.5.2 release.
- Red Hat Developer Hub 1.5 registry.redhat.io/rhdh/rhdh-hub-rhel9
- RHSA-2025:8244 Released 2025-05-28 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.21.0 release
- Red Hat OpenShift Dev Spaces 3 devspaces-tech-preview/idea-rhel9, devspaces-tech-preview/jetbrains-ide-rhel9, devspaces/code-rhel9 +11
Show 2 more Red Hat advisories
- RHSA-2025:7626 Released 2025-05-14 · Red Hat rating ImportantRed Hat Developer Hub 1.6.0 release.
- Red Hat Developer Hub 1.6 registry.redhat.io/rhdh/rhdh-hub-rhel9
- RHSA-2025:3932 Released 2025-04-16 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.20.0 release
- Red Hat OpenShift Dev Spaces 3 devspaces/devspaces-rhel9-operator, devspaces/pluginregistry-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 7 | Affected | No fix yet |
| Red Hat Ceph Storage 8 | Affected | No fix yet |
| Red Hat Ceph Storage 9 | Affected | No fix yet |
| Red Hat Ceph Storage 7.1 | Fixed | RHSA-2026:33154 |
| Red Hat Developer Hub 1.5 | Fixed | RHSA-2025:8540 |
| Red Hat Developer Hub 1.6 | Fixed | RHSA-2025:7626 |
| Red Hat OpenShift Dev Spaces 3 | Fixed | RHSA-2025:3932, RHSA-2025:8244 |
Not affected: 4 products
- Red Hat Ceph Storage 7.1
- Red Hat Developer Hub 1.5
- Red Hat Developer Hub 1.6
- Red Hat OpenShift Dev Spaces 3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-12905
- 2026-10-03 Alias added: GHSA-pq67-2wwv-3xjx
- 2026-10-13 Affected versions changed · Red Hat
References
Sources
- CVE-2024-12905 · CVE Program
- CVE-2024-12905 · NVD
- FIRST EPSS
- GHSA-pq67-2wwv-3xjx · GitHub Advisory Database · CC BY 4.0
- CVE-2024-12905 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences