CVE-2024-32002 in Git
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 writi...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Git | Git | 2.41.0 2.44.0 2.45.0 < 2.39.4 ≥ 2.40.0, < 2.40.2 ≥ 2.42.0, < 2.42.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-32002 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-269173-C |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2024-05-14 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
CWE-59: Improper Link Resolution Before File Access
Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.
CWE-434: Unrestricted Upload of File with Dangerous Type
Application allows file uploads without validating type, enabling upload of executable code or web shells.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22, CWE-59
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
Show all 9
CAPEC-132 Symlink Attack via CWE-59
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-434
CAPEC-17 Using Malicious Files via CWE-59
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Git versions prior to 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4 are vulnerable to a bug that allows attackers to write arbitrary files into the .git/ directory of a repository, potentially executing malicious hooks during the clone operation.
An attacker can craft a repository with submodules in a way that exploits a bug in Git, causing it to write files into the .git/ directory instead of the submodule's worktree. This can lead to the creation of malicious hooks that are executed during the clone operation.
Questions
What is CVE-2024-32002?
Git versions prior to 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4 are vulnerable to a bug that allows attackers to write arbitrary files into the .git/ directory of a repository, potentially executing malicious hooks during the clone operation.
What is the CVSS score for CVE-2024-32002?
CVE-2024-32002 has CVSS 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 9.3%.
Is CVE-2024-32002 actively exploited?
No confirmed active exploitation of CVE-2024-32002 as of 2026-09-25.
How do I remediate CVE-2024-32002?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-32002?
CVE-2024-32002 affects Git Git.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Git","product":"Git","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.