Remote code executionin Git.
Proof of concept public (GitHub).
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.
- Upgrade git to 2.39.4, 2.40.2, 2.42.2, 2.43.4 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 8 Apr 2024CVE ID reserved by GitHub_M.
- 14 May 2024Published in the CVE List.
- 17 May 2024First public proof of concept on GitHub.
- 4 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
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.
Report a link
Other Git vulnerabilities
Same weakness: Path traversal
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- git-scm.com x_refsource_MISC
- git-scm.com x_refsource_MISC
- lists.fedoraproject.org
- www.openwall.com
- lists.debian.org
- lists.debian.org
Patchminder. CVE-2024-32002: Remote code execution in Git. https://patchminder.com/cve/cve-2024-32002/ (accessed 5 December 2026).