CVE-2024-32465 json
Git's protections for cloning untrusted repositories can be bypassed
published 2024-05-14 2 y ago modified 2026-09-08 2 mo ago also BIT-git-2024-32465 , EUVD-2024-30280 , GHSA-vm9j-46j9-qvq4
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
Git is a revision control system. The Git project recommends to avoid working in untrusted repositories, and instead to clone it first with `git clone --no-local` to obtain a clean copy. Git has specific protections to make that a safe operation even with an untrusted source repository, but vulnerabilities allow those protections to be bypassed. In the context of cloning local repositories owned by other users, this vulnerability has been covered in CVE-2024-32004. But there are circumstances where the fixes for CVE-2024-32004 are not enough: For example, when obtaining a `.zip` file containing a full copy of a Git repository, it should not be trusted by default to be safe, as e.g. hooks could be configured to run within the context of that repository. 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 using Git in repositories that have been obtained via archives 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
- git Debian 12 1:2.39.5-0+deb12u1
- git Debian 14, Debian 13 1:2.45.1-1
debian advisories DEBIAN-CVE-2024-32465
- 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-32465
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:4368RHSA-2024:4084RHSA-2024:4083
- 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-32465
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-42046AZL-43053
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@7b70e9e 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-32465 updated cvss 7.3
git: additional local RCE
-
Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Enterprise Linux 7 git, gitk, git-hg, git-p4, gitweb, git-all, +12 moreaffected: workaround, no fix planned “Out of support scope”
-
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 “Will not fix”
-
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 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 RHSA-2024:4083
-
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 RHSA-2024:4368
-
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.03% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/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-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7
patch
-
github.com
/git/git/security/advisories/GHSA-vm9j-46j9-qvq4
vendor-advisory, advisory
-
git-scm.com
/docs/git#_security
technical-description, article
-
git-scm.com
/docs/git-clone
technical-description, article
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
mailing-list, third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2024/05/14/2
mailing-list, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2024/06/msg00018.html
mailing-list, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2024/09/msg00009.html
mailing-list, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-32465
web
Sources
- CVE List CVE-2024-32465
- NVD CVE-2024-32465
- OSV BIT-git-2024-32465
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.