CVE-2024-32020 json
Cloning local Git repository by untrusted user allows the untrusted user to modify objects in the cloned repository at will
published 2024-05-14 2 y ago modified 2026-09-08 2 mo ago also BIT-git-2024-32020 , EUVD-2024-29858 , GHSA-5rfh-556j-fhgj
- cvss
- 3.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- 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, local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. Cloning local repositories will cause Git to either copy or hardlink files of the source repository into the target repository. This significantly speeds up such local clones compared to doing a "proper" clone and saves both disk space and compute time. When cloning a repository located on the same disk that is owned by a different user than the current user we also end up creating such hardlinks. These files will continue to be owned and controlled by the potentially-untrusted user and can be rewritten by them at will in the future. 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.
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-32020
- 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-32020
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-32020
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-42037AZL-43033
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@1204e1a commit
- github.com/git/git@9e65df5 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-32020 updated cvss 3.9
git: insecure hardlinks
-
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 Enterprise Linux 10 git 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 available “Fix deferred”
-
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 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
- partial
- Assessed
- 2 y ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L |
| NVD | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
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-281 Improper Preservation of Permissions
References
-
github.com
/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d
patch
-
github.com
/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703
patch
-
github.com
/git/git/security/advisories/GHSA-5rfh-556j-fhgj
exploit, vendor-advisory, advisory
-
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
-
nvd.nist.gov
/vuln/detail/CVE-2024-32020
web
Sources
- CVE List CVE-2024-32020
- NVD CVE-2024-32020
- OSV BIT-git-2024-32020
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.