Security News > 2024 > May > Critical Git vulnerability allows RCE when cloning repositories with submodules (CVE-2024-32002)
![Critical Git vulnerability allows RCE when cloning repositories with submodules (CVE-2024-32002)](/static/build/img/news/critical-git-vulnerability-allows-rce-when-cloning-repositories-with-submodules-cve-2024-32002-medium.jpg)
New versions of Git are out, with fixes for five vulnerabilities, the most critical of which can be used by attackers to remotely execute code during a "Clone" operation.
CVE-2024-32002 is a critical vulnerability that allows specially crafted Git repositories with submodules to trick Git into writing files into a.git/ directory instead of the submodule's worktree.
"This is possible by a combination of confusing Git with a directory and a symbolic link that differs only in case so that Git can write either one, or the other, but not both. This confusion can be used to manipulate Git into 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," Git for Windows maintainer Johannes Schindelin explained.
CVE-2024-32004 also allows remote code execution, but only on multi-user machines: "An attacker can prepare a local repository so that it looks like a partial clone that is missing an object, so that, when this repository is cloned, Git will execute arbitrary code during the operation with full permissions of the user performing the clone."
CVE-2024-32465 may allow attackers to bypass protections for cloning untrusted repositories, CVE-2024-32020 may allow untrusted users to modify objects in the cloned repository, and CVE-2024-32021 may be used to manipulate Git into writing files outside the Git worktree and outside the.
"Upgrading to the latest Git version is essential to protect against these vulnerabilities. If you cannot update immediately, please be careful from where you clone repositories," Schindelin advised.
News URL
https://www.helpnetsecurity.com/2024/05/16/git-cve-2024-32002/
Related news
- Critical RCE flaws in vCenter Server fixed (CVE-2024-37079, CVE-2024-37080) (source)
- VMware fixes critical vCenter RCE vulnerability, patch now (source)
- Critical RCE Vulnerability Discovered in Ollama AI Infrastructure Tool (source)
- HPE Aruba Networking fixes four critical RCE flaws in ArubaOS (source)
- Four Critical Vulnerabilities Expose HPE Aruba Devices to RCE Attacks (source)
- Over 50,000 Tinyproxy servers vulnerable to critical RCE flaw (source)
- Veeam fixes RCE flaw in backup management platform (CVE-2024-29212) (source)
- New Chrome Zero-Day Vulnerability CVE-2024-4761 Under Active Exploitation (source)
- Defending Your Commits From Known CVEs With GitGuardian SCA And Git Hooks (source)
- Critical Fluent Bit flaw affects major cloud platforms, tech companies’ offerings (CVE-2024-4323) (source)
Related Vulnerability
DATE | CVE | VULNERABILITY TITLE | RISK |
---|---|---|---|
2024-05-14 | CVE-2024-32465 | Git is a revision control system. | 0.0 |
2024-05-14 | CVE-2024-32021 | Git is a revision control system. | 0.0 |
2024-05-14 | CVE-2024-32020 | Git is a revision control system. | 0.0 |
2024-05-14 | CVE-2024-32004 | Git is a revision control system. | 0.0 |
2024-05-14 | CVE-2024-32002 | Link Following vulnerability in GIT Git is a revision control system. | 9.0 |