CVE-2024-32002: git Path Traversal
Vulnerability summary
CVE-2024-32002 is a critical (CVSS 9.1) Path Traversal vulnerability in git. EPSS estimates a 29.23% chance of exploitation in the next 30 days, higher than 98.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 20 · Related 11Timeline
- 14-05-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
Description
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · WolfiEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- NVDNIST9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
EPSS trend
Probability
29.23%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
0.00 pp
From 29.23% 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 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-434Unrestricted Upload of File with Dangerous TypeThe product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
- 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
Alpine1 product
- git≥ 2.40.0, < 2.39.5-r0 | ≥ 2.40.0, < 2.40.3-r0 | ≥ 2.40.0, < 2.43.4-r0 | ≥ 2.40.0, < 2.45.1-r0
Chainguard1 product
- git< 2.45.1-r0
Debian1 product
- git< 1:2.39.5-0+deb12u1 | < 1:2.45.1-1
Git1 product
- git= 2.45.0 | = 2.44.0 | = 2.41.0 | < 2.39.4 | ≥ 2.40.0, < 2.40.2 | ≥ 2.42.0, < 2.42.2 | ≥ 2.43.0, < 2.43.4 | 2.41.0 | 2.44.0 | 2.45.0
Ubuntu1 product
- git< 1:2.17.1-1ubuntu0.18+esm1 | < 1:2.34.1-1ubuntu1.11 | < 1:2.43.0-1ubuntu7.1 | < 1:2.25.1-1ubuntu3.13
Wolfi1 product
- git< 2.45.1-r0
6 vendors · 6 products
References
17 links- github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgvX Refsource CONFIRMREPORTAdvisoryThird Party Advisory