cve.bz

CVE-2024-12905 Path traversal

7.5 highExploitEPSS 2.3%Fix available

High (7.5). EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in tar-fs 1.16.4, 2.1.2, 3.0.7.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-12905 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-12905?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-12905?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-12905 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pq67-2wwv-3xjxnpmtar-fs<1.16.41.16.4
GHSA-pq67-2wwv-3xjxnpmtar-fs>=2.0.0 <2.1.22.1.2
GHSA-pq67-2wwv-3xjxnpmtar-fs>=3.0.0 <3.0.73.0.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-tar-fs2.1.3-0+deb11u1DLA-4214-1
Debian12node-tar-fs2.1.3-0+deb12u1DEBIAN-CVE-2024-12905
Debian13, 14node-tar-fs3.0.8+~cs2.0.4-1DEBIAN-CVE-2024-12905
Ubuntu25.10node-tar-fs3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1USN-8367-1
UbuntuPro:22.04:LTSnode-tar-fs2.1.1-6ubuntu0.22.04.1~esm1UBUNTU-CVE-2024-12905 USN-8367-1
UbuntuPro:24.04:LTSnode-tar-fs2.1.1-6ubuntu0.24.04.1~esm1UBUNTU-CVE-2024-12905 USN-8367-1
Azure Linux2reaper3.1.1-18AZL-59367

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an important severity because it allows attackers to extract a malicious tar file that can write or overwrite files outside the intended directory. This occurs due to improper handling of link resolution and pathname limitations. The risk is high for systems that automatically extract tar files, as it can lead to data corruption or unauthorized file modifications without user interaction.

ProductPackageStateAdvisory
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/pluginregistry-rhel9:3.20-6Fixed 2025-04-16RHSA-2025:3932
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/code-rhel9:3.21-5Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/configbump-rhel9:3.21-5Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/dashboard-rhel9:3.21-12Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/devspaces-operator-bundle:3.21-25Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/devspaces-rhel9-operator:3.21-6Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/imagepuller-rhel9:3.21-2Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/machineexec-rhel9:3.21-4Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/pluginregistry-rhel9:3.21-7Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/server-rhel9:3.21-11Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces-tech-preview/idea-rhel9:3.21-1Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces-tech-preview/jetbrains-ide-rhel9:3.21-3Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/traefik-rhel9:3.21-1Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/udi-base-rhel9:3.21-2Fixed 2025-05-28RHSA-2025:8244
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/udi-rhel9:3.21-6Fixed 2025-05-28RHSA-2025:8244
Red Hat Ceph Storage 7.1rhceph/rhceph-7-rhel9:1781863705Fixed 2026-06-29RHSA-2026:33154
Red Hat Developer Hub 1.5rhdh/rhdh-hub-rhel9:1.5.2-1748495853Fixed 2025-06-04RHSA-2025:8540
Red Hat Ceph Storage 7cephAffected
Red Hat Ceph Storage 8cephAffected
Red Hat Ceph Storage 9cephAffected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-12905.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON