cve.bz

CVE-2024-32465 Path traversal

7.8 highEPSS 1.0%Fix available

High (7.8). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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: none · Automatable: no · Technical impact: total, 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-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
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-32465 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-32465?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-32465?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-32465 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-32465 DSA-5769-1
Debian13, 14git1:2.45.1-1DEBIAN-CVE-2024-32465
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.12UBUNTU-CVE-2024-32465 USN-6793-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.11UBUNTU-CVE-2024-32465 USN-6793-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.1UBUNTU-CVE-2024-32465 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-32465 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-32465
Alpinev3.18git2.40.3-r0ALPINE-CVE-2024-32465
Alpinev3.19git2.43.4-r0ALPINE-CVE-2024-32465
Alpinev3.20, v3.21, v3.22 and 2 moregit2.45.1-r0ALPINE-CVE-2024-32465
Azure Linux2git2.39.4-1AZL-42046
Azure Linux3git2.45.2-1AZL-43053
Alpaquita23git2.38.5-r1BELL-CVE-2024-32465
Alpaquitastreamgit2.45.1-r0BELL-CVE-2024-32465

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

Red Hat's statement

The vulnerability identified in Git as CVE-2024-32004, while significant, is categorized as Moderate rather than Important due to several factors. Primarily, the exploit requires meeting specific conditions, such as interacting with repositories from untrusted sources and potentially executing malicious code embedded within them. Additionally, the vulnerability does not inherently grant unauthorized access to system resources or compromise the integrity of Git installations. Although the potential impact of the exploit is substantial, its severity is tempered by the fact that it necessitates user interaction with repositories obtained from untrusted origins.

Red Hat's mitigation

To reduce the risk of exploitation, users are advised to refrain from using Git in repositories obtained from archives sourced from untrusted origins. This precautionary measure helps to minimize exposure to potential security threats until the necessary patches can be applied.

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 10gitNot affected
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat Enterprise Linux 7gitOut of support scope
Red Hat Fuse 7gitWill not fix
Red Hat Software Collectionsrh-git227-gitWill not fix

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

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very 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