CVE-2024-32004
Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
A public proof of concept exists; no exploitation attested.
- Published2024-05-14
- Fixed in2.43.4 · 2.42.2 · 2.40.2 · 2.39.4
- WeaknessCWE-114
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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, 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.
Timeline
dates in UTC- 2024-05-1419:15CVE publishedNVD
Versions per branch
CISA-ADP · OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.43 | ≥ 2.43.0, < 2.43.4 | 2.43.4 | CISA-ADP |
| 2.42 | ≥ 2.42.0, < 2.42.2 | 2.42.2 | CISA-ADP |
| 2.40 | ≥ 2.40.0, < 2.40.2 | 2.40.2 | CISA-ADP |
| 2.39 | < 2.39.4 | 2.39.4 | CISA-ADP |
| 2.45 | = 2.45.0 | no fix published | CISA-ADP |
| 2.44 | = 2.44.0 | no fix published | CISA-ADP |
| 2.41 | = 2.41.0 | no fix published | CISA-ADP |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.45 | ≥ 2.45.0, < 2.45.1 | 2.45.1 | OSV |
| 2.44 | ≥ 2.44.0, < 2.44.1 | 2.44.1 | OSV |
| 2.43 | ≥ 2.43.0, < 2.43.4 | 2.43.4 | NVD · OSV |
| 2.42 | ≥ 2.42.0, < 2.42.2 | 2.42.2 | NVD · OSV |
| 2.41 | ≥ 2.41.0, < 2.41.1 | 2.41.1 | OSV |
| 2.40 | ≥ 2.40.0, < 2.40.2 | 2.40.2 | NVD · OSV |
| 2.39 | < 2.39.4 | 2.39.4 | NVD · OSV |
| 2.41 | = 2.41.0 | no fix published | NVD |
| 2.44 | = 2.44.0 | no fix published | NVD |
| 2.45 | = 2.45.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
1 more product in the sources.
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.
- gitAffected
- = = 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.12
- gitTuxCare:Ubuntu:18.04all versions · fixed in 1:2.17.1-1ubuntu0.18+tuxcare.els1and 13 other packages
- gitTuxCare:Ubuntu:16.04all versions · fixed in 1:2.7.4-0ubuntu1.10+tuxcare.els4and 15 other packages
76 more package ranges on OSV.dev
Vendor advisories
git: RCE while cloning local repos
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 · +29 more
Red Hat Security Advisory: git security update
Red Hat Security Advisory: git security update
Red Hat Security Advisory: git security update
Red Hat Security Advisory: git security update
Red Hat Security Advisory: git security update
3 more advisories
Fix
- Update Git to 2.43.4 · 2.42.2 · 2.40.2 · 2.39.4
- Vendor fix Red Hat Product Security RHSA-2024:7701 · 20 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2024:7701 · 20 productsExercise caution when cloning repositories from untrusted sources.
- No fix planned, says the vendor Red Hat Product Security CVE-2024-32004 · 32 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comVendor Advisory
- lists.debian.orgVendor Advisory
- lists.fedoraproject.orgVendor Advisory
- lists.debian.orgVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01Wadewfsssss/CVE-2024-3200410cks/CVE-2024-32004-POC
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2024-05-15
- CNACVSS 3.18.1known since 2026-10-23
- NVDCVSS 3.17.8read 2026-10-23
- CNAweakness (CWE)CWE-114known since 2026-10-23
- FIRST EPSSEPSS score1.4 %2026-12-04
- PoC-in-GitHubproof of concept2known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-42022same flawAzure Linux · MIT
- AZL-43041same flawAzure Linux · MIT
- BIT-git-2024-32004same flawBitnami · Apache-2.0
- CGA-5rfv-8hjv-cw3qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f774-65fv-m2jvsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-29844same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-xfc6-vwr8-r389same flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2024:4083advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:4084advisory covering several CVEsAlmaLinux · MIT
- DLA-3844-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3867-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5769-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2024-0204advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-1662advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13968-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2024:4083advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4084advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4368advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4579advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:6027advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:6028advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:6610advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:7701advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:4083advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:4084advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2024:1807-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:1807-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:1854-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:2277-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:0197-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20049-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6793-1advisory covering several CVEsUbuntu
- USN-7023-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2024-05-14
- Last modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub advisory
- GHSA-xfc6-vwr8-r389
Frequently asked questions
What is CVE-2024-32004?
Is CVE-2024-32004 actively exploited?
What is the CVSS score for CVE-2024-32004?
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 checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2025-48384KEVsame productGit allows arbitrary code execution through broken config quoting
- CVE-2022-23521same product
- CVE-2023-25652same product
- CVE-2022-41903same product
- CVE-2024-32002same productGit's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution
- CVE-2020-5260same product
- CVE-2023-29007same product
- CVE-2022-25648same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-xfc6-vwr8-r389
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0