CVE-2024-52006: Newline confusion in credential helpers can lead to credential exfiltration in git
Noroxi assessment
Priority: Monitor (action score 8/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1% (FIRST EPSS); higher than 63.8% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No special conditions are required; it is repeatable.
- Fixed version: azl3 git 2.45.2-1 on Azure Linux 3.0 2.45.3-1; azl3 git 2.45.3-1 on Azure Linux 3.0 2.45.3-1; cbl2 git 2.39.4-1 on CBL Mariner 2.0 2.40.4-1.
Low priority for now. Upgrade to azl3 git 2.45.2-1 on Azure Linux 3.0 2.45.3-1; azl3 git 2.45.3-1 on Azure Linux 3.0 2.45.3-1; cbl2 git 2.39.4-1 on CBL Mariner 2.0 2.40.4-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2025-01177
- GHSA-86c2-4x57-wc8g
- ALSA-2025:11462
- ALSA-2025:11533
- ALSA-2025:11534
- DLA-4031-1
- DSA-5850-1
- RHSA-2025:11462
- RHSA-2025:11533
- RHSA-2025:11534
- RLSA-2025:11462
- RLSA-2025:11534
- SUSE-RU-2025:20362-1
- SUSE-SU-2025:0116-1
- SUSE-SU-2025:0144-1
- SUSE-SU-2025:0197-1
- SUSE-SU-2025:20197-1
- SUSE-SU-2025:20721-1
- Published
- Jan 14, 2025
- Updated
- Jun 17, 2026
- EPSS
- 1.0% · 63th percentile
- CWE
- CWE-116
Report tools
Action score
8
Monitor
Low priority for now.
- CVSS
- 8 / 40 · 2.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.0%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 2.1
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux11.0
- git git2.41.0 and later · before 2.41.3
- git git2.42.0 and later · before 2.42.4
- git git2.43.0 and later · before 2.43.6
- git git2.44.3 and later · before 2.44.3
- git gitbefore 2.40.4
- git git2.46.3 and later · before 2.46.3
- git git2.47.0 and later · before 2.47.2
- git git2.45.3 and later · before 2.45.3
- git git2.48.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
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.0affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | git-all | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-core-doc | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-email | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-gui | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-instaweb | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-subtree | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | git-svn | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | gitk | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | gitweb | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | perl-Git | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:10 | perl-Git-SVN | before 2.47.3-1.el10_0 | 2.47.3-1.el10_0 |
| AlmaLinux:8 | git | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-all | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-core | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-core-doc | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-credential-libsecret | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-daemon | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-email | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-gui | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-instaweb | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-subtree | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | git-svn | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | gitk | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
| AlmaLinux:8 | gitweb | before 2.43.7-1.el8_10 | 2.43.7-1.el8_10 |
+95
Same product
git: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-32002Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution45Plan
- CVE-2022-25648The package git before 1.11.0 are vulnerable to Command Injection via git argument injection.40Plan
- CVE-2025-48385Git alllows arbitrary file writes via bundle-uri parameter injection34Monitor
Published before and after this one in the same product
- ← EarlierCVE-2020-5260Apr 14, 2020 · malicious URLs may cause Git to present stored credentials to the wrong server34Monitor
- ← EarlierCVE-2024-50349Jan 14, 2025 · Git does not sanitize URLs when asking for credentials interactively8Monitor
- Later →CVE-2024-52005Jan 15, 2025 · The sideband payload is passed unfiltered to the terminal in git30Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| azl3 git 2.45.2-1 on Azure Linux 3.0 | 2.45.3-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 git 2.45.3-1 on Azure Linux 3.0 | 2.45.3-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 git 2.39.4-1 on CBL Mariner 2.0 | 2.40.4-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 git 2.39.4-1 on CBL-Mariner 2.0 | 2.40.4-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 git 2.40.4-1 on CBL Mariner 2.0 | 2.40.4-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:git | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-all | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-core | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-core-doc | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-credential-libsecret | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-daemon | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-email | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-gui | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-instaweb | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-subtree | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:git-svn | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:gitk | 2.47.3-1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| alpine:git | 2.40.4-r0 · Alpine:v3.18 | Package registry (OSV) |
| debian:git | 1:2.39.5-0+deb12u2 · Debian:12 | Package registry (OSV) |
| NuGet:git-credential-manager | 2.6.1 | Package registry (OSV) |
| opensuse:git | 2.43.0-150600.3.9.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| red hat:git | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-all | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-core | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-core-debuginfo | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-core-doc | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-credential-libsecret | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-credential-libsecret-debuginfo | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-daemon | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:git-daemon-debuginfo | 0:2.47.3-1.el9_6 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
+6
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2024-520051 days apartThe sideband payload is passed unfiltered to the terminal in git30Monitor
- CVE-2024-503490 days apartGit does not sanitize URLs when asking for credentials interactively8Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- A
- Scope
- X
Weakness class (CWE)
CWE-116 · Improper Encoding or Escaping of OutputCVSS vector
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/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
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.