CVE-2024-32004 Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
HighCVSS 7.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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. As a workaround, avoid cloning repositories from untrusted sources.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/git(Debian:12) | < 1:2.39.5-0+deb12u1 | 1:2.39.5-0+deb12u1 |
| debian/git(Debian:12) | = 1:2.39.2+next.20230215-1 | No fix listed |
| debian/git(Debian:12) | = 1:2.39.2-1.1 | No fix listed |
| debian/git(Debian:13) | < 1:2.45.1-1 | 1:2.45.1-1 |
| debian/git(Debian:14) | < 1:2.45.1-1 | 1:2.45.1-1 |
| ubuntu/git(Ubuntu:22.04) | < 1:2.34.1-1ubuntu1.11 | 1:2.34.1-1ubuntu1.11 |
| git | = = 2.45.0 | No fix listed |
| git | = = 2.44.0 | No fix listed |
| git | = >= 2.43.0, < 2.43.4 | No fix listed |
| git | = >= 2.42.0, < 2.42.2 | No fix listed |
| git | = = 2.41.0 | No fix listed |
| git | = >= 2.40.0, < 2.40.2 | No fix listed |
| git | = < 2.39.4 | No fix listed |
| git | = 2.45.0 | No fix listed |
| git | = 2.44.0 | No fix listed |
| git | >= 2.43.0, < 2.43.4 | 2.43.4 |
| git | >= 2.42.0, < 2.42.2 | 2.42.2 |
| git | = 2.41.0 | No fix listed |
| git | >= 2.40.0, < 2.40.2 | 2.40.2 |
| git | < 2.39.4 | 2.39.4 |
| alpine/git(Alpine:v3.17) | >= 2.40.0, < 2.39.5-r0 | 2.39.5-r0 |
| alpine/git(Alpine:v3.18) | >= 2.40.0, < 2.40.3-r0 | 2.40.3-r0 |
| alpine/git(Alpine:v3.19) | >= 2.40.0, < 2.43.4-r0 | 2.43.4-r0 |
| alpine/git(Alpine:v3.20) | >= 2.40.0, < 2.45.1-r0 | 2.45.1-r0 |
| alpine/git(Alpine:v3.21) | >= 2.40.0, < 2.45.1-r0 | 2.45.1-r0 |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/git(Alpine:v3.22) | >= 2.40.0, < 2.45.1-r0 | 2.45.1-r0 |
| alpine/git(Alpine:v3.23) | >= 2.40.0, < 2.45.1-r0 | 2.45.1-r0 |
| alpine/git(Alpine:v3.24) | >= 2.40.0, < 2.45.1-r0 | 2.45.1-r0 |
| ubuntu/git(Ubuntu:24.04) | < 1:2.43.0-1ubuntu7.1 | 1:2.43.0-1ubuntu7.1 |
| git-scm git | < 2.39.4 | 2.39.4 |
| git-scm git | >= 2.40.0, < 2.40.2 | 2.40.2 |
| git-scm git | >= 2.42.0, < 2.42.2 | 2.42.2 |
| git-scm git | >= 2.43.0, < 2.43.4 | 2.43.4 |
| git-scm git | = 2.41.0 | No fix listed |
| git-scm git | = 2.44.0 | No fix listed |
| git-scm git | = 2.45.0 | No fix listed |
| fedoraproject fedora | = 40 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-32004 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6793-1 vendor-advisory
- USN-7023-1 vendor-advisory
- www.cve.org
- https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389 vendor-advisory
- https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8 patch
- https://git-scm.com/docs/git-clone technical-description
- lists.fedoraproject.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- lists.debian.org mailing-list vendor-advisory
- lists.debian.org mailing-list vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking