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 security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Microsoft Visual Studio 2017 (includes 15.0 - 15.8) | =15.9 | |
Microsoft Visual Studio 2022 | =17.6 | |
Microsoft Visual Studio 2022 | =17.9 | |
Microsoft Visual Studio 2019 (includes 16.0 - 16.10) | =16.11 | |
Git Git | <2.39.4 | |
Git Git | >=2.40.0<2.40.2 | |
Git Git | >=2.42.0<2.42.2 | |
Git Git | >=2.43.0<2.43.4 | |
Git Git | =2.41.0 | |
Git Git | =2.44.0 | |
Git Git | =2.45.0 | |
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 |
debian/git | <=1:2.30.2-1+deb11u2 | 1:2.30.2-1+deb11u3 1:2.39.5-0+deb12u1 1:2.45.2-1 1:2.45.2-1.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.