patchminder
Proof of concept · GitHub CVE-2024-32002

Remote code executionin Git.

Published 14 May 2024 · Updated 4 Nov 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 29.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade git to 2.39.4, 2.40.2, 2.42.2, 2.43.4 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
git
2.45.0
Not confirmed
CISA
git
2.44.0
Not confirmed
CISA
git
2.43 to before 2.43.4
2.43.4
CISA
git
2.42.0 to before 2.42.2
2.42.2
CISA
git
2.41.0
Not confirmed
CISA
git
2.40.0 to before 2.40.2
2.40.2
CISA
git
before 2.39.4
2.39.4
CISA

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 Apr 2024
    CVE ID reserved by GitHub_M.
  2. 14 May 2024
    Published in the CVE List.
  3. 17 May 2024
    First public proof of concept on GitHub.
  4. 4 Nov 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
65 repositories
GitHubno warning signs foundamalmurali47/git_rce530 stars · created 17 May 2024Exploit PoC for CVE-2024-32002
GitHubno warning signs foundsafebuffer/CVE-2024-32002108 stars · created 18 May 2024CVE-2024-32002 RCE PoC
GitHubno warning signs foundamalmurali47/hook18 stars · created 17 May 2024Hook for the PoC for exploiting CVE-2024-32002
GitHubno warning signs foundM507/CVE-2024-3200210 stars · created 18 May 2024local poc for CVE-2024-32002
GitHubno warning signs foundYukaFake/CVE-2024-32002-Reverse-Shell6 stars · created 21 May 2024Este script demuestra cómo explotar la vulnerabilidad CVE-2024-32002 para obtener una reverse shell, proporcionando acceso remoto al sistema afectado. Úselo con precaución en entornos controlados y
GitHubno warning signs foundjweny/CVE-2024-32002_HOOK3 stars · created 20 May 2024
GitHubno warning signs foundjweny/CVE-2024-32002_EXP3 stars · created 20 May 2024
GitHubno warning signs foundNishanthAnand21/CVE-2024-32002-PoC3 stars · created 30 Jul 2024PoC of CVE-2024-32002 · Remote Code Execution while cloning special-crafted local repositories
GitHubno warning signs foundmarkuta/CVE-2024-320022 stars · created 17 May 2024A proof of concept for the git vulnerability CVE-2024-32002
GitHubno warning signs foundbfengj/CVE-2024-32002-Exploit2 stars · created 22 May 2024

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Git vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-32002: Remote code execution in Git. https://patchminder.com/cve/cve-2024-32002/ (accessed 5 December 2026).