CVE-2023-23946: git-scm git Path Traversal
Vulnerability summary
CVE-2023-23946 is a high (CVSS 7.5) Path Traversal vulnerability in git-scm git. EPSS estimates a 1.14% chance of exploitation in the next 30 days, higher than 65.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 11 · Related 7Timeline
- 14-02-2023PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
Description
Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8. By feeding a crafted input to `git apply`, a path outside the working tree can be overwritten as the user who is running `git apply`. A fix has been prepared and will appear in v2.39.2, v2.38.4, v2.37.6, v2.36.5, v2.35.7, v2.34.7, v2.33.7, v2.32.6, v2.31.7, and v2.30.8. As a workaround, use `git apply --stat` to inspect a patch before applying; avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
- 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 · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
1.14%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
-0.01 pp
From 1.14% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- git≥ 2.31.0, < 2.32.6-r0 | ≥ 2.31.0, < 2.34.7-r0 | ≥ 2.31.0, < 2.36.5-r0 | ≥ 2.31.0, < 2.38.4-r0 | ≥ 2.31.0, < 2.39.2-r0
Chainguard1 product
- git< 2.39.2-r1
Debian1 product
- git< 1:2.39.2-1
Git1 product
- git≥ 2.39.0, < 2.39.2 | ≥ 2.38.0, < 2.38.4 | ≥ 2.37.0, < 2.37.6 | ≥ 2.36.0, < 2.36.5 | ≥ 2.35.0, < 2.35.7 | ≥ 2.34.0, < 2.34.7 | ≥ 2.33.0, < 2.33.7 | ≥ 2.32.0, < 2.32.6 | ≥ 2.31.0, < 2.31.7 | < 2.30.8
Git-scm1 product
- git< 2.30.8 | ≥ 2.31.0, < 2.31.7 | ≥ 2.32.0, < 2.32.6 | ≥ 2.33.0, < 2.33.7 | ≥ 2.34.0, < 2.34.7 | ≥ 2.35.0, < 2.35.7 | ≥ 2.36.0, < 2.36.5 | ≥ 2.37.0, < 2.37.6 | ≥ 2.38.0, < 2.38.4 | ≥ 2.39.0, < 2.39.2
Ubuntu1 product
- git< 1:2.7.4-0ubuntu1.10+esm5 | < 1:2.17.1-1ubuntu0.16 | < 1:2.25.1-1ubuntu3.10 | < 1:2.34.1-1ubuntu1.8
Wolfi1 product
- git< 2.39.2-r1
7 vendors · 7 products
References
10 links- github.com/git/git/security/advisories/GHSA-r87m-v37r-cwfhX Refsource CONFIRMAdvisoryVendor Advisory