CWE
22 434 59
Advisory Published
CVE Published
CVE Published
Updated

CVE-2024-32002: Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution

First published: Tue May 14 2024(Updated: )

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.

Credit: security-advisories@github.com CVE-2024-32002 Mickey Jin @patch1t Guilherme Rambo Best Buddy AppsAlexander Heinrich SEEMOO DistriNet KU Leuven @vanhoefm TU Darmstadt @Sn0wfreeze Mathy Vanhoef Wojciech Regula SecuRing

Affected SoftwareAffected VersionHow to fix
Microsoft Visual Studio 2017 (includes 15.0 - 15.8)=15.9
Microsoft Visual Studio 2022=17.9
Microsoft Visual Studio 2019 (includes 16.0 - 16.10)=16.11
Microsoft Visual Studio 2022=17.6
redhat/git<2.45.1
2.45.1
redhat/git<2.44.1
2.44.1
redhat/git<2.43.4
2.43.4
redhat/git<2.42.2
2.42.2
redhat/git<2.41.1
2.41.1
redhat/git<2.40.2
2.40.2
redhat/git<2.39.4
2.39.4
Apple Xcode<16
16
debian/git<=1:2.30.2-1+deb11u2
1:2.30.2-1+deb11u4
1:2.39.5-0+deb12u1
1:2.39.5-0+deb12u2
1:2.47.2-0.1
Git<2.39.4
Git>=2.40.0<2.40.2
Git>=2.42.0<2.42.2
Git>=2.43.0<2.43.4
Git=2.41.0
Git=2.44.0
Git=2.45.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Peer vulnerabilities

(Found alongside the following vulnerabilities)

Frequently Asked Questions

  • What is the severity of CVE-2024-32002?

    CVE-2024-32002 is classified as a medium severity vulnerability that could potentially lead to unauthorized file writing in Git repositories.

  • How do I fix CVE-2024-32002?

    To fix CVE-2024-32002, update your Git installation to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, or 2.39.4 or higher.

  • Which software is affected by CVE-2024-32002?

    CVE-2024-32002 affects various versions of Git prior to 2.45.1 as well as certain Microsoft Visual Studio and Apple Xcode versions.

  • What exploit does CVE-2024-32002 allow?

    CVE-2024-32002 allows crafted Git repositories with submodules to write files to unexpected locations, compromising the integrity of the file system.

  • Are there any known exploits for CVE-2024-32002?

    As of now, there are no public exploits confirmed for CVE-2024-32002, but users are encouraged to apply updates promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203