CVE-2024-12905: code-server Path Traversal
Vulnerability summary
CVE-2024-12905 is a high (CVSS 7.5) Path Traversal vulnerability in code-server. EPSS estimates a 2.25% chance of exploitation in the next 30 days, higher than 82.6% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 6Timeline
- 27-03-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
2.25%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
+0.04 pp
From 2.22% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundtar-fs 3.0.0 - Arbitrary File Write/Overwrite
Maturity: poc
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-59Improper Link Resolution Before File Access ('Link Following')The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Affected systems
Chainguard8 products
- code-server< 4.105.1-r1
- kibana-7< 7.17.28-r41
- sqlpad< 7.5.3-r1
- sqlpad-compat< 7.5.3-r1
- tileserver-gl< 5.2.0-r1
Wolfi5 products
- code-server< 4.105.1-r1
- sqlpad< 7.5.3-r1
- sqlpad-compat< 7.5.3-r1
- tileserver-gl< 5.2.0-r1
- tileserver-gl-compat< 5.2.0-r1
Debian1 product
- node-tar-fs< 2.1.3-0+deb12u1 | < 3.0.8+~cs2.0.4-1
Npm1 product
- tar-fs< 1.16.4 | ≥ 2.0.0, < 2.1.2 | ≥ 3.0.0, < 3.0.7
Ubuntu1 product
- node-tar-fs< 2.1.1-6ubuntu0.22.04.1~esm1 | < 2.1.1-6ubuntu0.24.04.1~esm1
5 vendors · 16 products
References
13 links- www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fsTechnical DescriptionARTICLEWEB
Show all 13 references
- github.com/mafintosh/tar-fsPACKAGE