Home › CVE › Vulnerabilities
CVE-2024-52005
Research article
Git Improper Encoding Flaw in Sideband Channel (CVE-2024-52005)
| CVE | CVE-2024-52005 |
|---|---|
| Published | December 01, 2026 19:01 UTC |
| Research cut-off | December 01, 2026 18:50 UTC |
| Sources reviewed | 5: NVD record (last modified 2026-06-17); CISA KEV catalog; vendor advisory page (github.com); FIRST EPSS (2026-12-01); 1 vendor bulletin |
Executive summary
CVE-2024-52005 affects multiple Git versions, including those up to 2.40.4 and several later version ranges up to 2.48.1 [1]. The vulnerability, rated HIGH with a CVSS 3.1 score of 8.8, involves improper handling of terminal control sequences in the sideband channel [1]. The reviewed sources do not report exploitation [2]. The sources do not list a fixed version for CVE-2024-52005 [1].
Key points
- CVE-2024-52005 is a HIGH severity vulnerability in Git, with a CVSS 3.1 score of 8.8 [1].
- The flaw involves improper handling of terminal control sequences in the sideband channel [3].
- The vulnerability requires user interaction and has a low attack complexity [1].
- The impact includes high confidentiality, integrity, and availability risks [1].
- The reviewed sources do not report exploitation, and no fixed version is listed [2].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2024-52005 [1] |
| Vendor | Git [1] |
| Product | Git [1] |
| CWE | CWE-116 [1], CWE-150 [1] |
| CVSS 4.0 | 7.5 HIGH, scored by security-advisories@github.com (Secondary) [1] |
| CVSS 3.1 | 8.8 HIGH, scored by nvd@nist.gov (Primary) [1] |
| Published | 2025-01-15T18:15:24 [1] |
| Last Modified | 2026-06-17T08:06:47 [1] |
| Record Status | Analyzed [1] |
Vulnerability description
Git transmits messages from remote servers through a sideband channel, which are displayed as standard error output. These messages may contain control sequences that terminals can interpret, potentially enabling malicious actions [3]. The flaw involves improper handling of escape sequences in terminal output, which could lead to misleading information or script execution [3]. The issue is tied to how Git processes and displays messages from remote repositories, exposing the terminal to potential manipulation [3].
Attack surface and exploitation prerequisites
The CVSS 3.1 vector indicates the vulnerability requires user interaction (UI:R) and has a low attack complexity (AC:L). The attacker must have network access (AV:N) to exploit this flaw [1].
Impact analysis
The CVSS 3.1 vector shows high impact on confidentiality (C:H), integrity (I:H), and availability (A:H). The description highlights that the flaw could lead to misleading information or script execution, which may allow an attacker to display incorrect data or prompt users to run harmful commands [4].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| ≤ 2.40.4 [1] | Not listed |
| ≥ 2.41.0, ≤ 2.41.3 [1] | Not listed |
| ≥ 2.42.0, ≤ 2.42.4 [1] | Not listed |
| ≥ 2.43.0, ≤ 2.43.6 [1] | Not listed |
| ≥ 2.44.0, ≤ 2.44.3 [1] | Not listed |
| ≥ 2.45.0, ≤ 2.45.3 [1] | Not listed |
| ≥ 2.46.0, ≤ 2.46.3 [1] | Not listed |
| ≥ 2.47.0, ≤ 2.47.1 [1] | Not listed |
| ≥ 2.48.0, ≤ 2.48.1 [1] | Not listed |
Exploitation and threat intelligence status
CVE-2024-52005 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-01 [2]. The EPSS score for exploitation activity in the next 30 days is 0.0051 (0.51%), with a percentile of 0.4497 [5]. This is a statistical estimate, not evidence of exploitation.
Detection and exposure assessment
Readers can assess exposure by checking if their installed Git version falls within the affected range [1]. No detection steps are provided in the sources.
Remediation
The sources do not list a fixed version for this vulnerability. Users are advised to avoid recursive cloning unless they fully trust the remote repository, as this could increase exposure to the vulnerability [3].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The reviewed sources do not report exploitation.
- The sources do not mention a workaround.
- The sources do not describe a complete version range for all affected versions.
- The sources do not provide detection steps for this vulnerability.
References
- CVE-2024-52005 record. NIST National Vulnerability Database (NVD), 2026-06-17. https://nvd.nist.gov/vuln/detail/CVE-2024-52005. Accessed 2026-12-01.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-01. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-01.
- Vendor advisory page (github.com). github.com. https://github.com/git/git/security/advisories/GHSA-7jjc-gg6m-3329. Accessed 2026-12-01.
- USN-9303-1: Git vulnerabilities. Ubuntu USN, 2026-12-01. https://ubuntu.com/security/notices/USN-9303-1. Accessed 2026-12-01.
- EPSS score for CVE-2024-52005. FIRST, 2026-12-01. https://api.first.org/data/v1/epss?cve=CVE-2024-52005. Accessed 2026-12-01.
Summary
It was discovered that Git did not properly sanitize messages received from remote repositories before displaying them in the terminal. An attacker could possibly use this issue to display misleading information and trick users into executing arbitrary commands. (CVE-2024-52005) It was discovered that Git incorrectly calculated buffer sizes when performing certain three-way merge operations. An a…
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must deliberately do something
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-116: Improper Encoding or Escaping of Output
- CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| git | >= 2.48.0, <= 2.48.1, >= 2.47.0, <= 2.47.1, >= 2.46.0, <= 2.46.3 … <= 2.40.4 (9 versions) | — |
References by type
Vendor advisories
Other references
Frequently asked questions
What is CVE-2024-52005?
CVE-2024-52005 affects multiple Git versions, including those up to 2.40.4 and several later version ranges up to 2.48.1. The vulnerability, rated HIGH with a CVSS 3.1 score of 8.8, involves improper handling of terminal control sequences in the sideband channel. The reviewed sources do not report exploitation. The sources do not list a fixed version for CVE-2024-52005. Weakness type: Improper Encoding or Escaping of Output (CWE-116).
How severe is CVE-2024-52005?
CVE-2024-52005 has a CVSS 4.0 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2024-52005 being exploited?
Not as far as is known: CVE-2024-52005 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2024-52005?
git >= 2.48.0, <= 2.48.1, >= 2.47.0, <= 2.47.1, >= 2.46.0, <= 2.46.3 … <= 2.40.4 (9 versions).
How do I fix CVE-2024-52005?
Avoid recursive cloning unless fully trusting the remote repository. Monitoring vendor updates is general guidance; the sources do not list a fixed version for CVE-2024-52005. Review and update Git configurations to minimize terminal output exposure.