CVE-2024-32004 json
Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
published 2024-05-14 2 y ago modified 2026-09-08 2 mo ago also BIT-git-2024-32004 , EUVD-2024-29844 , GHSA-xfc6-vwr8-r389
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami git 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1
- git git 2.39.4, 2.40.2, 2.42.2, 2.43.4
- git Debian 12 1:2.39.5-0+deb12u1
- git Debian 14, Debian 13 1:2.45.1-1
debian advisories DEBIAN-CVE-2024-32004
- git Ubuntu 20.04 LTS 1:2.25.1-1ubuntu3.12
- git Ubuntu 22.04 LTS 1:2.34.1-1ubuntu1.11
- git Ubuntu 24.04 LTS 1:2.43.0-1ubuntu7.1
- git Ubuntu Pro 18.04 LTS 1:2.17.1-1ubuntu0.18+esm1
ubuntu advisories UBUNTU-CVE-2024-32004
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git RHEL 8 2.43.5-1.el8_10
- gitk RHEL 8 2.43.5-1.el8_10
- gitweb RHEL 8 2.43.5-1.el8_10
- git-all RHEL 8 2.43.5-1.el8_10
- git-gui RHEL 8 2.43.5-1.el8_10
- git-svn RHEL 8 2.43.5-1.el8_10
- git-core RHEL 8 2.43.5-1.el8_10
- perl-Git RHEL 8 2.43.5-1.el8_10
red hat advisories RHSA-2024:7701RHSA-2024:6610RHSA-2024:6028RHSA-2024:6027RHSA-2024:4579RHSA-2024:4368
- git Linux Micro 6.0 2.45.1-1.1
- git SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.43.0-150600.3.3.1
- git SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, SLE Micro 5.5 +11 more 2.35.3-150300.10.39.1
- git SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 2.26.2-27.78.1
- git SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE High Performance Computing 15 SP2-LTSS 2.26.2-150000.56.1
suse advisories SUSE-SU-2025:20049-1SUSE-SU-2025:0197-1SUSE-SU-2024:2277-1SUSE-SU-2024:1854-1SUSE-SU-2024:1807-2SUSE-SU-2024:1807-1
- git openSUSE Tumbleweed 2.45.1-1.1
opensuse advisories openSUSE-SU-2024:13968-1
- git AlmaLinux 9 2.43.5-1.el9_4
- gitk AlmaLinux 9 2.43.5-1.el9_4
- gitweb AlmaLinux 9 2.43.5-1.el9_4
- git-all AlmaLinux 9 2.43.5-1.el9_4
- git-gui AlmaLinux 9 2.43.5-1.el9_4
- git-svn AlmaLinux 9 2.43.5-1.el9_4
- git-core AlmaLinux 9 2.43.5-1.el9_4
- perl-Git AlmaLinux 9 2.43.5-1.el9_4
almalinux advisories ALSA-2024:4083ALSA-2024:4084
- git Rocky Linux 9 2.43.5-1.el9_4
- git Rocky Linux 8 2.43.5-1.el8_10
rocky linux advisories RLSA-2024:4083RLSA-2024:4084
- git Alpine 3.17 2.39.5-r0
- git Alpine 3.18 2.40.3-r0
- git Alpine 3.19 2.43.4-r0
- git Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 2.45.1-r0
alpine advisories ALPINE-CVE-2024-32004
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git CBL-Mariner 2.0 2.39.4-1
- git Azure Linux 3.0 2.45.2-1
azure linux advisories AZL-42022AZL-43041
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/git/git@f4aa8c8 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-32004 updated cvss 8.1
git: RCE while cloning local repos
-
Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Fuse 7 git Red Hat Software Collections rh-git227-git, rh-git227-gitk, rh-git227-git-p4, rh-git227-gitweb, rh-git227-git-all, rh-git227-git-cvs, +10 moreaffected: workaround, no fix planned “Exercise caution when cloning repositories from untrusted sources.”
-
Red Hat Enterprise Linux AppStream (v. 8) git 2.43.5-1.el8_10, gitk 2.43.5-1.el8_10, gitweb 2.43.5-1.el8_10, git-all 2.43.5-1.el8_10, git-gui 2.43.5-1.el8_10, git-svn 2.43.5-1.el8_10, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:4084
-
Red Hat Enterprise Linux AppStream (v. 9) git 2.43.5-1.el9_4, gitk 2.43.5-1.el9_4, gitweb 2.43.5-1.el9_4, git-all 2.43.5-1.el9_4, git-gui 2.43.5-1.el9_4, git-svn 2.43.5-1.el9_4, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:4083
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) git 2.18.4-5.el8_2, gitk 2.18.4-5.el8_2, gitweb 2.18.4-5.el8_2, git-all 2.18.4-5.el8_2, git-gui 2.18.4-5.el8_2, git-svn 2.18.4-5.el8_2, +7 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:7701
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) git 2.27.0-5.el8_4, gitk 2.27.0-5.el8_4, gitweb 2.27.0-5.el8_4, git-all 2.27.0-5.el8_4, git-gui 2.27.0-5.el8_4, git-svn 2.27.0-5.el8_4, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6028
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) git 2.31.8-3.el8_6, gitk 2.31.8-3.el8_6, gitweb 2.31.8-3.el8_6, git-all 2.31.8-3.el8_6, git-gui 2.31.8-3.el8_6, git-svn 2.31.8-3.el8_6, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6027
-
Red Hat Enterprise Linux AppStream E4S (v.8.4) git 2.27.0-5.el8_4, gitk 2.27.0-5.el8_4, gitweb 2.27.0-5.el8_4, git-all 2.27.0-5.el8_4, git-gui 2.27.0-5.el8_4, git-svn 2.27.0-5.el8_4, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6028
-
Red Hat Enterprise Linux AppStream E4S (v.8.6) git 2.31.8-3.el8_6, gitk 2.31.8-3.el8_6, gitweb 2.31.8-3.el8_6, git-all 2.31.8-3.el8_6, git-gui 2.31.8-3.el8_6, git-svn 2.31.8-3.el8_6, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6027
show 6 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) git 2.31.1-6.el9_0, gitk 2.31.1-6.el9_0, gitweb 2.31.1-6.el9_0, git-all 2.31.1-6.el9_0, git-gui 2.31.1-6.el9_0, git-svn 2.31.1-6.el9_0, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6610
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) git 2.39.5-1.el8_8, gitk 2.39.5-1.el8_8, gitweb 2.39.5-1.el8_8, git-all 2.39.5-1.el8_8, git-gui 2.39.5-1.el8_8, git-svn 2.39.5-1.el8_8, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:4579
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) git 2.39.5-1.el9_2, gitk 2.39.5-1.el9_2, gitweb 2.39.5-1.el9_2, git-all 2.39.5-1.el9_2, git-gui 2.39.5-1.el9_2, git-svn 2.39.5-1.el9_2, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:4368
-
Red Hat Enterprise Linux AppStream TUS (v.8.4) git 2.27.0-5.el8_4, gitk 2.27.0-5.el8_4, gitweb 2.27.0-5.el8_4, git-all 2.27.0-5.el8_4, git-gui 2.27.0-5.el8_4, git-svn 2.27.0-5.el8_4, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6028
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) git 2.31.8-3.el8_6, gitk 2.31.8-3.el8_6, gitweb 2.31.8-3.el8_6, git-all 2.31.8-3.el8_6, git-gui 2.31.8-3.el8_6, git-svn 2.31.8-3.el8_6, +8 morefixed: vendor fix “Exercise caution when cloning repositories from untrusted sources.” RHSA-2024:6027
-
Red Hat Enterprise Linux 7 git, gitk, git-hg, git-p4, gitweb, git-all, +12 more Red Hat Enterprise Linux 10 gitnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.35% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | git | <2.39.4 >=2.40.0, <2.40.2 >=2.41.0, <2.41.1 >=2.42.0, <2.42.2 >=2.43.0, <2.43.4 >=2.44.0, <2.44.1 >=2.45.0, <2.45.1 |
2.39.4 2.40.2 2.41.1 2.42.2 2.43.4 2.44.1 2.45.1 |
Affected products
- git git
Classification
- Weakness
-
- CWE-114 Process Control
References
-
github.com
/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8
patch
-
github.com
/git/git/security/advisories/GHSA-xfc6-vwr8-r389
vendor-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
mailing-list, vendor-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2024/06/msg00018.html
mailing-list, vendor-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2024/09/msg00009.html
mailing-list, vendor-advisory, advisory
-
git-scm.com
/docs/git-clone
technical-description, article
-
openwall.com
/lists/oss-security/2024/05/14/2
mailing-list, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-32004
web
Sources
- CVE List CVE-2024-32004
- NVD CVE-2024-32004
- OSV BIT-git-2024-32004
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.