cve.bz

CVE-2024-32021

7.1 highExploit referenceEPSS 1.0%

High (7.1). EPSS 1.0% 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, when cloning a local source repository that contains symlinks via the filesystem, Git may create hardlinks to arbitrary user-readable files on the same filesystem as the target repository in the `objects/` directory. Cloning a local repository over the filesystem may creating hardlinks to arbitrary user-owned files on the same filesystem in the target Git repository's `objects/` directory. When cloning a repository over the filesystem (without explicitly specifying the `file://` protocol or `--no-local`), the optimizations for local cloning will be used, which include attempting to hard link the object files instead of copying them. While the code includes checks against symbolic links in the source repository, which were added during the fix for CVE-2022-39253, these checks can still be raced because the hard link operation ultimately follows symlinks. If the object on the filesystem appears as a file during the check, and then a symlink during the operation, this will allow the adversary to bypass the check and create hardlinks in the destination objects directory to arbitrary, user-readable files. 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

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-06-11. 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-547 Use of Hard-coded, Security-relevant Constants
OWASP Top 10
A02:2025 Security Misconfiguration
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-32021 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-32021?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-32021?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-32021 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
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u9DLA-3844-1
Debian11git1:2.30.2-1+deb11u3DLA-3867-1
Debian12git1:2.39.5-0+deb12u1DEBIAN-CVE-2024-32021 DSA-5769-1
Debian13, 14git1:2.45.1-1DEBIAN-CVE-2024-32021
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.12UBUNTU-CVE-2024-32021 USN-6793-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.11UBUNTU-CVE-2024-32021 USN-6793-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.1UBUNTU-CVE-2024-32021 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-32021 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-32021
Alpinev3.18git2.40.3-r0ALPINE-CVE-2024-32021
Alpinev3.19git2.43.4-r0ALPINE-CVE-2024-32021
Alpinev3.20, v3.21, v3.22 and 2 moregit2.45.1-r0ALPINE-CVE-2024-32021
Azure Linux2git2.39.4-1AZL-42013
Azure Linux3git2.45.2-1AZL-43042
Alpaquita23git2.38.5-r1BELL-CVE-2024-32021
Alpaquitastreamgit2.45.1-r0BELL-CVE-2024-32021

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

While the Git vulnerability described involves the potential creation of hardlinks to arbitrary files during the cloning process, its severity is considered Low due to several mitigating factors. First, successful exploitation relies on the presence of specific conditions, including the use of local cloning over the filesystem and the ability to manipulate symbolic links within the source repository. Secondly, the impact is limited to the creation of hardlinks to user-readable files, which may not necessarily lead to immediate compromise or exploitation of sensitive data. Additionally, the likelihood of exploitation is reduced by the need for direct access to the filesystem where the cloning operation occurs.

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-32021.

References

Check your stackJSON