CVE-2024-52006

Newline confusion in credential helpers can lead to credential exfiltration in git

HIGH
7.5
CVSS Score
Published: January 14, 2025 at 06:39 PM UTC
Updated: June 17, 2026 at 08:06 AM UTC
2 products affected across 2 vendorsDebian LinuxGit

Using git by git?

Get instant alerts when new vulnerabilities affect git - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Git· Gitrubygems
95%
v ≤ 2.41.2v ≤ 2.42.3v ≤ 2.43.5v ≤ 2.44.2v ≤ 2.45.2v ≤ 2.46.2v < 2.40.4v < 2.47.22.41.0 ≤ v < 2.41.32.42.0 ≤ v < 2.42.42.43.0 ≤ v < 2.43.62.44.3 ≤ v < 2.44.32.45.3 ≤ v < 2.45.32.46.3 ≤ v < 2.46.32.47.0 ≤ v < 2.47.22.48.0<= 2.40.3= 2.48.0
Affected range stops below 2.47.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-116CWE-147CWE-150

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card