Vulnerability · Published Jan 15, 2025 · Assigned by GitHub_M
CVE-2024-52005The sideband payload is passed unfiltered to the terminal in git
High 7.5
In plain English
A high-severity security flaw in git from git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Git is a source code management tool. When cloning from a server (or fetching, or pushing), informational or error messages are transported from the remote Git process to the client via the so-called "sideband channel". These messages will be prefixed with "remote:" and printed directly to the standard error output. Typically, this standard error output is connected to a terminal that understands ANSI escape sequences, which Git did not protect against. Most modern terminals support control sequences that can be used by a malicious actor to hide and misrepresent information, or to mislead the user into executing untrusted scripts. As requested on the git-security mailing list, the patches are under discussion on the public mailing list. Users are advised to update as soon as possible. Users unable to upgrade should avoid recursive clones unless they are from trusted sources.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | git | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-all | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-all | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-all | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-core | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-core | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-core | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-core-doc | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-core-doc | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-core-doc | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-credential-libsecret | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-credential-libsecret | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-credential-libsecret | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-daemon | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-daemon | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-daemon | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-email | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-email | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-email | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-gui | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-gui | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-gui | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-instaweb | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-instaweb | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-instaweb | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-subtree | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-subtree | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-subtree | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | git-svn | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | git-svn | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | git-svn | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | gitk | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | gitk | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | gitk | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | gitweb | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | gitweb | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | gitweb | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | perl-Git | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | perl-Git | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | perl-Git | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| AlmaLinux:10 | perl-Git-SVN | 2.47.1-2.el10_0 | ALSA-2025:7482 |
| AlmaLinux:8 | perl-Git-SVN | 2.43.5-3.el8_10 | ALSA-2025:8414 |
| AlmaLinux:9 | perl-Git-SVN | 2.47.1-2.el9_6 | ALSA-2025:7409 |
| Debian:12 | git | no fix listed | DEBIAN-CVE-2024-52005 |
| Debian:13 | git | no fix listed | DEBIAN-CVE-2024-52005 |
| Debian:14 | git | no fix listed | DEBIAN-CVE-2024-52005 |
| Rocky Linux:10 | git | 0:2.47.1-2.el10_0 | RLSA-2025:7482 |
| Rocky Linux:8 | git | 0:2.43.5-3.el8_10 | RLSA-2025:8414 |
| Rocky Linux:9 | git | 0:2.47.1-2.el9_6 | RLSA-2025:7409 |
| Ubuntu:22.04:LTS | git | no fix listed | UBUNTU-CVE-2024-52005 |
| Ubuntu:24.04:LTS | git | no fix listed | UBUNTU-CVE-2024-52005 |
| Ubuntu:25.10 | git | no fix listed | UBUNTU-CVE-2024-52005 |
| Ubuntu:26.04:LTS | git | no fix listed | UBUNTU-CVE-2024-52005 |
| Ubuntu:26.10 | git | no fix listed | UBUNTU-CVE-2024-52005 |
Affected products (as reported)
Weakness: CWE-116, CWE-150 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/git/git/security/advisories/GHSA-7jjc-gg6m-3329 x_refsource_CONFIRM
- https://lore.kernel.org/git/1M9FnZ-1taoNo1wwh-00ESSd@mail.gmx.net x_refsource_MISC