cve.bz

CVE-2024-32020 Improper Preservation of Permissions

3.3 lowExploit referenceEPSS 0.5%Fix available

Low (3.3). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

3.3 low
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-05-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-281 Improper Preservation of Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-32020 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-32020?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-32020?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-32020 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitbefore 2.39.4
git-scm:gitfrom 2.40.0 before 2.40.2
git-scm:gitfrom 2.42.0 before 2.42.2
git-scm:gitfrom 2.43.0 before 2.43.4
git-scm:git2.41.0
git-scm:git2.44.0
git-scm:git2.45.0
fedoraproject:fedora40

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12git1:2.39.5-0+deb12u1DEBIAN-CVE-2024-32020 DSA-5769-1
Debian13, 14git1:2.45.1-1DEBIAN-CVE-2024-32020
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.12UBUNTU-CVE-2024-32020 USN-6793-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.11UBUNTU-CVE-2024-32020 USN-6793-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.1UBUNTU-CVE-2024-32020 USN-6793-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm8USN-7023-1
UbuntuPro:18.04:LTSgit1:2.17.1-1ubuntu0.18+esm1UBUNTU-CVE-2024-32020 USN-7023-1
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.43.5-1.el8_10RHSA-2024:4084
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.43.5-1.el9_4RHSA-2024:4083
Red Hatrhel_eus:9.2::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el9_2RHSA-2024:4368
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 moregit2.35.3-150300.10.39.1SUSE-SU-2024:1807-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2git2.26.2-150000.56.1SUSE-SU-2024:1854-1
SUSELinux Enterprise Micro 5.5git2.35.3-150300.10.39.1SUSE-SU-2024:1807-2
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6git2.43.0-150600.3.3.1SUSE-SU-2024:2277-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5git2.26.2-27.78.1SUSE-SU-2025:0197-1
SUSELinux Micro 6.0git2.45.1-1.1SUSE-SU-2025:20049-1
openSUSELeap 15.5git2.35.3-150300.10.39.1SUSE-SU-2024:1807-1
openSUSELeap 15.6git2.43.0-150600.3.3.1SUSE-SU-2024:2277-1
openSUSETumbleweedgit2.45.1-1.1openSUSE-SU-2024:13968-1
AlmaLinux8git, gitk, gitweb and 12 more2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux9git, gitk, gitweb and 12 more2.43.5-1.el9_4ALSA-2024:4083
Rocky Linux8git0:2.43.5-1.el8_10RLSA-2024:4084
Rocky Linux9git0:2.43.5-1.el9_4RLSA-2024:4083
Alpinev3.17git2.39.5-r0ALPINE-CVE-2024-32020
Alpinev3.18git2.40.3-r0ALPINE-CVE-2024-32020
Alpinev3.19git2.43.4-r0ALPINE-CVE-2024-32020
Alpinev3.20, v3.21, v3.22 and 2 moregit2.45.1-r0ALPINE-CVE-2024-32020
Azure Linux2git2.39.4-1AZL-42037
Azure Linux3git2.45.2-1AZL-43033
Alpaquita23git2.38.5-r1BELL-CVE-2024-32020
Alpaquitastreamgit2.45.1-r0BELL-CVE-2024-32020

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability presents a Low severity issue due to its contextual constraints and limited impact potential. Primarily affecting local Git repository clones where source and target repositories reside on the same disk, the risk arises only when the source repository is owned by a different, potentially untrusted user. This scenario necessitates specific conditions for exploitation, such as shared access to the disk among multiple users. Moreover, the impact is localized to the affected repositories and does not extend to the broader system or network. While the integrity of the target repository may be compromised if the untrusted user modifies linked files, the scope of influence is contained within the repository structure.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8git-0:2.43.5-1.el8_10Fixed 2024-06-25RHSA-2024:4084
Red Hat Enterprise Linux 9git-0:2.43.5-1.el9_4Fixed 2024-06-25RHSA-2024:4083
Red Hat Enterprise Linux 9.2 Extended Update Supportgit-0:2.39.5-1.el9_2Fixed 2024-07-08RHSA-2024:4368
Red Hat Enterprise Linux 10gitFix deferred
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat Enterprise Linux 7gitOut of support scope
Red Hat Fuse 7gitFix deferred
Red Hat Software Collectionsrh-git227-gitFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-32020.

References

Check your stackJSON