Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2024-52005: Git can show misleading messages from remote servers
CVE-2024-52005 · published 1 year ago
Summary
Git copies code from other machines and shows any messages the remote side sends. If those messages contain special formatting codes, they can hide or alter what you see, potentially tricking you into running unwanted scripts. Update Git to the latest version, and if you cannot update, avoid cloning repositories recursively from sources you do not trust.
What to do
- Update canonical rootio-git to version 1:2.43.0-1ubuntu7.3.root.io.2.
- Update git to version 1:2.43.0-1ubuntu7.3.root.io.2.
- Update rootio-git to version 1:2.43.0-1ubuntu7.3.root.io.2.
- Update git to version 1:2.43.0-1ubuntu7.4.aikido.5.
- Update rootio-git to version 1:2.43.0-1ubuntu7.4.aikido.5.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | git | git |
<= 2.40.4 >= 2.41.0, <= 2.41.3 >= 2.42.0, <= 2.42.4 >= 2.43.0, <= 2.43.6 >= 2.44.0, <= 2.44.3 >= 2.45.0, <= 2.45.3 >= 2.46.0, <= 2.46.3 >= 2.47.0, <= 2.47.1 >= 2.48.0, <= 2.48.1 cpe:2.3:a:git:git:*:*:*:*:*:*:*:* |
| Root:Ubuntu:24.04 | canonical | rootio-git |
< 1:2.43.0-1ubuntu7.3.root.io.2 Fix: upgrade to 1:2.43.0-1ubuntu7.3.root.io.2
|
| Ubuntu:Pro:16.04:LTS | canonical | git | All versions |
| Root:Ubuntu:24.04 | – | git |
< 1:2.43.0-1ubuntu7.3.root.io.2 < 1:2.43.0-1ubuntu7.4.aikido.5 Fix: upgrade to 1:2.43.0-1ubuntu7.3.root.io.2
|
| Root:Ubuntu:24.04 | – | rootio-git |
< 1:2.43.0-1ubuntu7.3.root.io.2 < 1:2.43.0-1ubuntu7.4.aikido.5 Fix: upgrade to 1:2.43.0-1ubuntu7.3.root.io.2
|
| Debian:12 | debian | git | All versions |
Original advisory text
CVE-2024-52005 in git - Patched by Root
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.
References
- https://github.com/git/git/security/advisories/GHSA-7jjc-gg6m-3329 Third Party Advisory
- https://ubuntu.com/security/CVE-2024-52005 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2024-52005 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52005... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-52005 Vendor Advisory
- https://lore.kernel.org/git/[email protected]/T/#t Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2024-52005 Vendor Advisory
- https://lore.kernel.org/git/[email protected] Third Party Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.4
Critical
Type
CWE-116Improper Encoding or Escaping of Output
CWE-150Improper Neutralization of Escape, Meta, or Control Sequences
Timeline
Published15 Jan 2025
Updated2 Dec 2026
First seen7 Mar 2026
Sources
CVE-2024-52005 · NVD
UBUNTU-CVE-2024-52005 · OSV
CVE-2024-52005 · OSV
GHSA-7jjc-gg6m-3329 · GHSA
DEBIAN-CVE-2024-52005 · OSV
Track software like this
Free during beta