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 Software | Affected Version | How 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 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Found alongside the following vulnerabilities)
CVE-2024-32002 is classified as a medium severity vulnerability that could potentially lead to unauthorized file writing in Git repositories.
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.
CVE-2024-32002 affects various versions of Git prior to 2.45.1 as well as certain Microsoft Visual Studio and Apple Xcode versions.
CVE-2024-32002 allows crafted Git repositories with submodules to write files to unexpected locations, compromising the integrity of the file system.
As of now, there are no public exploits confirmed for CVE-2024-32002, but users are encouraged to apply updates promptly.