Skip to main content
Public proof of conceptFix available

CVE-2024-32002

Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution

A public proof of concept exists; no exploitation attested.

  • Published2024-05-14
  • Fixed in2.45.1 · 2.44.1 · 2.43.4 · 2.42.2 · 2.41.1 · 2.40.2
  • WeaknessCWE-22 · CWE-434 · CWE-59

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-1419:15CVE publishedNVD

Versions per branch

OSV · NVD · CISA-ADP
Git
BranchAffectedFixed in
2.45≥ 2.45.0, < 2.45.12.45.1
2.44≥ 2.44.0, < 2.44.12.44.1
2.43≥ 2.43.0, < 2.43.42.43.4
2.43≥ 2.43, < 2.43.42.43.4
2.42≥ 2.42.0, < 2.42.22.42.2
2.41≥ 2.41.0, < 2.41.12.41.1
2.40≥ 2.40.0, < 2.40.22.40.2
2.39< 2.39.42.39.4
2.41= 2.41.0no fix published
2.44= 2.44.0no fix published
2.45= 2.45.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • git
    Affected
    • = = 2.45.0no fix stated
    • = = 2.44.0no fix stated
    • = >= 2.43.0, < 2.43.4no fix stated
    • = >= 2.42.0, < 2.42.2no fix stated
    • = = 2.41.0no fix stated
    • = >= 2.40.0, < 2.40.2no fix stated
    • = < 2.39.4no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-26

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gitWolfiall versions · fixed in 2.45.1-r0
  • gitUbuntu:Pro:18.04:LTSall versions · fixed in 1:2.17.1-1ubuntu0.18+esm1
  • gitUbuntu:Pro:16.04:LTSall versions · fixed in 1:2.7.4-0ubuntu1.10+esm8
  • gitUbuntu:24.04:LTSall versions · fixed in 1:2.43.0-1ubuntu7.1
  • gitUbuntu:22.04:LTSall versions · fixed in 1:2.34.1-1ubuntu1.11
  • gitUbuntu:20.04:LTSall versions · fixed in 1:2.25.1-1ubuntu3.13
  • gitUbuntu:20.04:LTSall versions · fixed in 1:2.25.1-1ubuntu3.12
  • gitTuxCare:Ubuntu:18.04all versions · fixed in 1:2.17.1-1ubuntu0.18+tuxcare.els2and 13 other packages

67 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-32002 Red Hat Product Security421 products fixed · 51 known affected

    git: Recursive clones RCE

    emacs-git as a component of Red Hat Enterprise Linux 6 · emacs-git-el as a component of Red Hat Enterprise Linux 6 · git as a component of Red Hat Enterprise Linux 6 · +48 more

  • RHSA-2024:6610 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2024:6027 Red Hat Product Security93 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2024:6028 Red Hat Product Security73 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2024:4579 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2024:4368 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

2 more advisories

Full record on NVD

Fix

  1. Update Git to 2.45.1 · 2.44.1 · 2.43.4 · 2.42.2 · 2.41.1 · 2.40.2 · 2.39.4
  2. Vendor fix Red Hat Product Security RHSA-2024:6610 · 51 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2024:6610 · 51 productsOne preventative measure is to disable symbolic link support. This can be accomplished by running the command git config --global core.symlinks false. Another temporary option is to avoid using the --recurse-submodules setting with untrusted git repos.
  4. No fix planned, says the vendor Red Hat Product Security CVE-2024-32002 · 31 productsOut of support scope
  5. No fix planned, says the vendor Red Hat Product Security CVE-2024-32002 · 20 productsWill not fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-05-29
  • CNACVSS 3.19known since 2026-10-23
  • NVDCVSS 3.19read 2026-10-23
  • CNAweakness (CWE)CWE-22, CWE-434known since 2026-10-23
  • NVDweakness (CWE)CWE-59read 2026-10-23
  • FIRST EPSSEPSS score29.2 %read 2026-11-09
  • PoC-in-GitHubproof of concept20known since 2026-11-01
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
2024-05-14
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-8h77-4q3w-gfgv

Frequently asked questions

What is CVE-2024-32002?

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.

Is CVE-2024-32002 actively exploited?

A proof-of-concept exploit exists for CVE-2024-32002, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-32002?

CVE-2024-32002 has a CVSS v3 base score of 9 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

Running git? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record