cve.bz

CVE-2024-32002 git git: Link Following

9.0 criticalEPSS 29%Fix available

Critical (9.0) in git git. EPSS 29% 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, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. 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. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.

Severity

CVSS 3.1

9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
29% (unchanged from 29% a week ago; 29% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th 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: total, assessed 2024-05-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-32002 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-32002?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-32002?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-32002 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:gitbefore 2.39.4
git:gitfrom 2.40.0 before 2.40.2
git:gitfrom 2.42.0 before 2.42.2
git:gitfrom 2.43.0 before 2.43.4
git:git2.41.0
git:git2.44.0
git:git2.45.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-32002 DSA-5769-1
Debian13, 14git1:2.45.1-1DEBIAN-CVE-2024-32002
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.13UBUNTU-CVE-2024-32002 USN-6793-1 USN-6793-2
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.11UBUNTU-CVE-2024-32002 USN-6793-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.1UBUNTU-CVE-2024-32002 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-32002 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_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamgit, gitk, gitweb and 17 more0:2.27.0-5.el8_4RHSA-2024:6028
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.8-3.el8_6RHSA-2024:6027
Red Hatrhel_e4s:9.0::appstreamgit, gitk, gitweb and 17 more0:2.31.1-6.el9_0RHSA-2024:6610
Red Hatrhel_eus:8.8::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el8_8RHSA-2024:4579
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-32002
Alpinev3.18git2.40.3-r0ALPINE-CVE-2024-32002
Alpinev3.19git2.43.4-r0ALPINE-CVE-2024-32002
Alpinev3.20, v3.21, v3.22 and 2 moregit2.45.1-r0ALPINE-CVE-2024-32002
Azure Linux2git2.39.4-1AZL-42040
Azure Linux3git2.45.2-1AZL-43038
Alpaquita23git2.38.5-r1BELL-CVE-2024-32002
Alpaquitastreamgit2.45.1-r0BELL-CVE-2024-32002

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

Red Hat's statement

While the described bug in Git presents a significant security concern, it falls short of being categorized as Critical due to several factors. The exploit requires a specific set of conditions, such as repositories with submodules and the presence of symbolic link support. Additionally, successful exploitation relies on users cloning repositories from untrusted sources, limiting its scope compared to critical vulnerabilities that may be remotely exploitable or affect a broader range of use cases. However, the potential impact of remote code execution during cloning operations underscores the importance of promptly applying patches and exercising caution when interacting with Git repositories, emphasizing its significant severity within the realm of software security.

Red Hat's mitigation

One preventative measure is to disable symbolic link support. This can be accomplished by running the command git config --global core.symlinks false. Another temporary option is to avoid using the --recurse-submodules setting with untrusted git repos.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8git-0:2.43.5-1.el8_10Fixed 2024-06-25RHSA-2024:4084
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgit-0:2.27.0-5.el8_4Fixed 2024-08-29RHSA-2024:6028
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicegit-0:2.27.0-5.el8_4Fixed 2024-08-29RHSA-2024:6028
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsgit-0:2.27.0-5.el8_4Fixed 2024-08-29RHSA-2024:6028
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgit-0:2.31.8-3.el8_6Fixed 2024-08-29RHSA-2024:6027
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicegit-0:2.31.8-3.el8_6Fixed 2024-08-29RHSA-2024:6027
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsgit-0:2.31.8-3.el8_6Fixed 2024-08-29RHSA-2024:6027
Red Hat Enterprise Linux 8.8 Extended Update Supportgit-0:2.39.5-1.el8_8Fixed 2024-07-16RHSA-2024:4579
Red Hat Enterprise Linux 9git-0:2.43.5-1.el9_4Fixed 2024-06-25RHSA-2024:4083
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgit-0:2.31.1-6.el9_0Fixed 2024-09-11RHSA-2024:6610
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 10gitNot affected
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat Enterprise Linux 7gitWill not fix
Red Hat Fuse 7gitWill not fix
Red Hat Software Collectionsrh-git227-gitOut of support scope

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

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON