Security Resilience

CVE-2024-32002

Path Traversal in Git ≤ 2.39.4

Published
14 May 2024
Modified
04 November 2025
Patch / advisory
CVSS Score v3.1 9.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.29 98th percentile
Risk Priority 89 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-32002 is a critical-severity Path Traversal (CWE-22) vulnerability in Git. Its CVSS base score is 9.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique /etc/passwd and /etc/shadow (T1003.008); ranked in the top 2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Git is a widely used revision control system that is vulnerable to a path traversal issue when handling repositories containing submodules. Prior to the releases 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, a specially crafted repository can cause Git to write files into a .git/ directory instead of the intended submodule worktree. The flaw is tracked under CWE-22, CWE-434, and CWE-59 and carries a CVSS 3.1 score of 9.0.

An attacker who controls a repository can embed malicious submodules that exploit symbolic-link handling during a recursive clone. When a victim clones the repository, Git writes an executable hook into .git/ that runs automatically while the clone operation is still in progress, giving the target no chance to review the code. The attack requires no authentication or user interaction beyond performing the clone and succeeds over the network.

Official patches have been issued in the listed Git versions. The Git project notes that setting core.symlinks to false globally prevents the attack vector, and it continues to recommend against cloning repositories from untrusted sources. The associated GitHub Security Advisory and commit 97065761333fd62db1912d81b489db938d8c991d document the fix and the configuration workaround.

The current EPSS score of 0.8247, with a peak of 0.8295, indicates sustained exploitation interest following disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1003.008 /etc/passwd and /etc/shadow Credential Access
Adversaries may attempt to dump the contents of <code>/etc/passwd</code> and <code>/etc/shadow</code> to enable offline password cracking.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-6941Shared CWE-22, CWE-59
CVE-2024-57728Shared CWE-22, CWE-59
CVE-2026-32020Shared CWE-22, CWE-59
CVE-2026-126054Shared CWE-22, CWE-59
CVE-2026-63395Shared CWE-22, CWE-59
CVE-2023-7216Shared CWE-22, CWE-59
CVE-2026-24842Shared CWE-22, CWE-59
CVE-2026-55668Shared CWE-22, CWE-59
CVE-2026-33748Shared CWE-22, CWE-59
CVE-2020-36193Shared CWE-22, CWE-59

Affected Assets

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

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2
  • V5.1.1

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Input validation directly neutralizes special path elements before pathname construction occurs.

Malicious-code protection at entry points blocks dangerous file types from being accepted and executed.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Least functionality restricts the file types and automatic processing capabilities the system will accept.

SC-18 Mobile Code partial match

Mobile-code controls define, authorize, and block unacceptable uploaded code before automatic processing occurs.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-05 mostly match
blocks

Restricting execution of unauthorized software directly blocks dangerous uploaded files from running.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require code to validate paths and avoid unsafe link following.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce allowed file types and processing rules.

PR.PS-02 partial match
blocks

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches path traversal via static/dynamic analysis.

prevents

Training developers about secure file handling practices (checking for symlinks, using safe file APIs, avoiding predictable temp filenames) reduces some instances of link-following defects, but the effect is a minority one because the practice is fallible and the stronger control is A.8.29 security testing, consistent with the A.8.28 -> CWE-79 and A.6.3 -> CWE-598 anchors.

prevents

Secure coding standards explicitly forbid unsafe path construction and mandate safe APIs.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software weaknesses in delivered code the way those practices do; CWE-434 is an implementation defect in upload handling that secure coding/testing practices address, but the clause's mechanism is contractual and fallible, leaving a nameable remainder.

blocks

A.8.7 can block exploitation of CWE-434 when uploaded dangerous files contain malware that its scanning detects before use, but because it does not restrict file types itself and malware detection misses unknown or custom scripts, only a minority of instances are stopped.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. Path traversal commonly surfaces as CVEs in third-party components (many examples in the CWE-22 record), so A.8.8 finds that disclosed share; first-party path-traversal defects in the organization's own code are invisible to vulnerability scanning and management, which is the same remainder that caps A.8.8 -> CWE-89 at `partial`.

References