CVE-2024-32465
Git vulnerability analysis and mitigation

Overview

CVE-2024-32465 is a security vulnerability in Git that allows untrusted repositories to execute arbitrary code during clone operations. The vulnerability was discovered and disclosed on May 14, 2024. It affects Git versions prior to 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. While Git has specific protections to make cloning operations safe even with untrusted source repositories, this vulnerability allows those protections to be bypassed, particularly when dealing with repositories obtained from downloaded archives (GitHub Advisory).

Technical details

The vulnerability occurs when cloning repositories obtained from untrusted sources, such as .zip files or archives. Even though Git is supposed to safely handle untrusted repositories, the vulnerability allows attackers to configure hooks that can execute arbitrary code in the context of the repository during the clone operation. This vulnerability has been assigned a CVSS v3.1 base score of 7.3 (High) with the vector string CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to execute arbitrary code with the permissions of the user performing the clone operation. This is particularly concerning when users unpack and interact with Git repositories from untrusted sources, as the attacker can configure the repository to execute malicious code during normal Git operations (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Git 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, users should avoid using Git in repositories that have been obtained via archives from untrusted sources. When working with untrusted repositories, it is recommended to clone them first with git clone --no-local to obtain a clean copy (GitHub Advisory, Openwall).

Additional resources


SourceThis report was generated using AI

Related Git vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-32465HIGH7.8
  • GitGit
  • git-svn
NoYesMay 14, 2024
CVE-2024-52005HIGH7.5
  • GitGit
  • git-instaweb
NoYesJan 15, 2025
CVE-2024-52006LOW2.1
  • GitGit
  • git-all
NoYesJan 14, 2025
CVE-2024-50349LOW2.1
  • GitGit
  • perl-Git
NoYesJan 14, 2025
ELSA-2025-11534HIGHN/A
  • GitGit
  • git
NoYesJul 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management