CVE-2024-52005: The sideband payload is passed unfiltered to the terminal in git
Vulnerability summary
CVE-2024-52005 is a high (CVSS 8.8) Improper Encoding or Escaping of Output vulnerability in git. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 45% of scored vulnerabilities.
Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 4Timeline
- 15-01-2025PublishedVulnerability first disclosed.
- 15-01-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST7.5HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.51% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
- CWE-150Improper Neutralization of Escape, Meta, or Control SequencesThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat20 products
- git< 0:2.47.1-2.el9_6 | < 0:2.47.1-2.el10_0 | < 0:2.43.5-1.el9_4.1 | < 0:2.39.5-1.el9_2.1 | < 0:2.43.5-3.el8_10
- git-all< 0:2.47.1-2.el9_6 | < 0:2.47.1-2.el10_0 | < 0:2.43.5-1.el9_4.1 | < 0:2.39.5-1.el9_2.1 | < 0:2.43.5-3.el8_10
- git-core< 0:2.47.1-2.el9_6 | < 0:2.47.1-2.el10_0 | < 0:2.43.5-1.el9_4.1 | < 0:2.39.5-1.el9_2.1 | < 0:2.43.5-3.el8_10
- git-core-debuginfo< 0:2.47.1-2.el9_6 | < 0:2.47.1-2.el10_0 | < 0:2.43.5-1.el9_4.1 | < 0:2.39.5-1.el9_2.1 | < 0:2.43.5-3.el8_10
- git-core-doc< 0:2.47.1-2.el9_6 | < 0:2.47.1-2.el10_0 | < 0:2.43.5-1.el9_4.1 | < 0:2.39.5-1.el9_2.1 | < 0:2.43.5-3.el8_10
Chainguard1 product
- git-email< 2.49.0-r0
Debian1 product
- gitAll versions (No fix recorded)
Git1 product
- 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
Ubuntu1 product
- gitAll versions (No fix recorded) | < 1:2.34.1-1ubuntu1.20 | < 1:2.43.0-1ubuntu7.5 | < 1:2.53.0-1ubuntu1.2
Wolfi1 product
- git-email< 2.49.0-r0
6 vendors · 25 products
References
22 links- github.com/git/git/security/advisories/GHSA-7jjc-gg6m-3329X Refsource CONFIRMARTICLEREPORTAdvisoryVendor Advisory
- lore.kernel.org/git/[email protected]X Refsource MISCARTICLEREPORTWEBMailing ListThird Party Advisory