Home / git / git / CVE-2024-52006
CVE-2024-52006: is it exploited, and which versions of git are affected and fixed?
CVE-2024-52006 is an improper output encoding vulnerability in git. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: git <= 2.40.3, git >= 2.41.0, <= 2.41.2, git >= 2.42.0, <= 2.42.3 and 6 more (CVE record by GitHub_M). Fixed in 2.40.4, 2.41.3, 2.42.4, 2.43.6 and 2 more (NVD). Severity: Low (2.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2024-52006?
Newline confusion in credential helpers can lead to credential exfiltration in git
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Git defines a line-based protocol that is used to exchange information between Git and Git credential helpers. Some ecosystems (most notably, .NET and node.js) interpret single Carriage Return characters as newlines, which renders the protections against CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this way. This issue has been addressed in commit `b01b9b8` which is included in release versions v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.
From the CVE record by GitHub_M, last updated November 3, 2025, 20:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| git | git | <= 2.40.3 >= 2.41.0, <= 2.41.2 >= 2.42.0, <= 2.42.3 >= 2.43.0, <= 2.43.5 >= 2.44.0, <= 2.44.2 >= 2.45.0, <= 2.45.2 >= 2.46.0, <= 2.46.2 >= 2.47.0, < 2.47.2 = 2.48.0 |
As the CVE record by GitHub_M states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| git | git | before 2.40.4 | application |
| git | git | from 2.41.0 before 2.41.3 | application |
| git | git | from 2.42.0 before 2.42.4 | application |
| git | git | from 2.43.0 before 2.43.6 | application |
| git | git | from 2.44.3 before 2.44.3 | application |
| git | git | from 2.45.3 before 2.45.3 | application |
| git | git | from 2.46.3 before 2.46.3 | application |
| git | git | from 2.47.0 before 2.47.2 | application |
| git | git | 2.48.0 | application |
| debian | debian linux | 11.0 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:06 UTC.
How severe is CVE-2024-52006?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-52006 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 14, 2025)
- EPSS
- 1.03% probability of exploitation activity in the next 30 days, percentile 64.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-116 Improper Encoding or Escaping of Output
- CWE-147 Improper Neutralization of Input Terminators
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Where are the vendor advisories and references?
- https://github.com/git/git/security/advisories/GHSA-r5ph-xg7q-xfrp x_refsource_CONFIRM
- https://github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8g x_refsource_MISC
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q x_refsource_MISC
- https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/01/msg00025.html
When was it published, and where is the official record?
- Reserved
- November 4, 2024
- Published
- January 14, 2025, 18:39 UTC
- CVE record updated
- November 3, 2025, 20:45 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 08:06 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect git?
- Jul 8, 2025CVE-2025-48384 git: interpretation Conflict exploited
- Nov 16, 2026CVE-2026-111760 git: link following (a symlink lets an attacker reach other files)
- Nov 12, 2026CVE-2026-114467 Git: out-of-bounds write (memory corruption)
- Nov 12, 2026CVE-2026-114466 Git: insufficient Granularity of Access Control
- Nov 12, 2026CVE-2026-114469 Git: out-of-bounds read
- Nov 12, 2026CVE-2026-113408 Git: path traversal (reading or writing files outside the intended folder)
- Nov 10, 2026CVE-2026-105437 Git: heap buffer overflow
- Jul 8, 2025CVE-2025-48385 git: argument injection
Questions about CVE-2024-52006
Is CVE-2024-52006 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 1.03% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of git are affected by CVE-2024-52006?
git <= 2.40.3, git >= 2.41.0, <= 2.41.2, git >= 2.42.0, <= 2.42.3, git >= 2.43.0, <= 2.43.5, git >= 2.44.0, <= 2.44.2, git >= 2.45.0, <= 2.45.2 and 3 more, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2024-52006?
2.40.4, 2.41.3, 2.42.4, 2.43.6, 2.44.3 and 2.45.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-52006?
Low (2.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-52006?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.