7.5

CVE-2024-12905: code-server Path Traversal

CVSS: 7.5v3.1HighDeferred
AliasesUBUNTU-CVE-2024-12905DEBIAN-CVE-2024-12905CGA-95xw-rfjq-5q5x
Published 27-03-2025Last modified 03-11-2025

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.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
2.25%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1exploit-database

Advisory lineage

Upstream 0 · Downstream 3 · Related 6

Timeline

  1. 27-03-2025
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last 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

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

19-09-202619-10-2026
EPSS score
2.25%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • exploit-databaselocallinuxUnverified

    tar-fs 3.0.0 - Arbitrary File Write/Overwrite

    Maturity: poc

Weaknesses

CWE · root cause

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
Show all 13 references