CVEfocus › CVE database › CVE-2024-52006

CVE-2024-52006Newline confusion in credential helpers can lead to credential exfiltration in git

CVSS 2.1 LowEPSS 1.1% (higher than 66% of CVEs)Published 2025-01-14Updated 2025-11-03Assigner: GitHub_M

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.

CWE-116CWE-147CWE-150

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

101Fixed
32Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04gitFixed1:2.43.0-1ubuntu7.2UBUNTU-CVE-2024-52006
Ubuntu 22.04gitFixed1:2.34.1-1ubuntu1.12UBUNTU-CVE-2024-52006
Ubuntu 20.04gitFixed1:2.25.1-1ubuntu3.14UBUNTU-CVE-2024-52006
Ubuntu 18.04gitFix pending1:2.17.1-1ubuntu0.18+esm6 (Ubuntu Pro)UBUNTU-CVE-2024-52006
Ubuntu 16.04gitFix pending1:2.7.4-0ubuntu1.10+esm13 (Ubuntu Pro)UBUNTU-CVE-2024-52006
Debian 14gitFixed1:2.47.2-0.1DEBIAN-CVE-2024-52006
Debian 13gitFixed1:2.47.2-0.1DEBIAN-CVE-2024-52006
Debian 12gitFixed1:2.39.5-0+deb12u2DEBIAN-CVE-2024-52006
Red Hat Enterprise Linux 10gitFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-allFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-coreFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-core-docFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-credential-libsecretFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-daemonFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-emailFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-guiFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-instawebFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-subtreeFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10git-svnFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10gitkFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10gitwebFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10perl-GitFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 10perl-Git-SVNFixed0:2.47.3-1.el10_0RHSA-2025:11533
Red Hat Enterprise Linux 9gitFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-allFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-coreFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-core-docFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-credential-libsecretFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-daemonFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-emailFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-guiFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-instawebFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-subtreeFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9git-svnFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9gitkFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9gitwebFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9perl-GitFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 9perl-Git-SVNFixed0:2.47.3-1.el9_6RHSA-2025:11462
Red Hat Enterprise Linux 8gitFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-allFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-coreFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-core-docFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-credential-libsecretFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-daemonFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-emailFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-guiFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-instawebFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-subtreeFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8git-svnFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8gitkFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8gitwebFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8perl-GitFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 8perl-Git-SVNFixed0:2.43.7-1.el8_10RHSA-2025:11534
Red Hat Enterprise Linux 7emacs-gitFix pending
Fix deferred
Red Hat Enterprise Linux 7emacs-git-elFix pending
Fix deferred
Red Hat Enterprise Linux 7gitFix pending
Fix deferred
Red Hat Enterprise Linux 7git-allFix pending
Fix deferred
Red Hat Enterprise Linux 7git-bzrFix pending
Fix deferred
Red Hat Enterprise Linux 7git-cvsFix pending
Fix deferred
Red Hat Enterprise Linux 7git-daemonFix pending
Fix deferred
Red Hat Enterprise Linux 7git-emailFix pending
Fix deferred
Red Hat Enterprise Linux 7git-gnome-keyringFix pending
Fix deferred
Red Hat Enterprise Linux 7git-guiFix pending
Fix deferred
Red Hat Enterprise Linux 7git-hgFix pending
Fix deferred
Red Hat Enterprise Linux 7git-instawebFix pending
Fix deferred
Red Hat Enterprise Linux 7git-p4Fix pending
Fix deferred
Red Hat Enterprise Linux 7git-svnFix pending
Fix deferred
Red Hat Enterprise Linux 7gitkFix pending
Fix deferred
Red Hat Enterprise Linux 7gitwebFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-GitFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-Git-SVNFix pending
Fix deferred
Red Hat Enterprise Linux 6emacs-gitFix pending
Fix deferred
Red Hat Enterprise Linux 6emacs-git-elFix pending
Fix deferred
Red Hat Enterprise Linux 6gitFix pending
Fix deferred
Red Hat Enterprise Linux 6git-allFix pending
Fix deferred
Red Hat Enterprise Linux 6git-cvsFix pending
Fix deferred
Red Hat Enterprise Linux 6git-daemonFix pending
Fix deferred
Red Hat Enterprise Linux 6git-emailFix pending
Fix deferred
Red Hat Enterprise Linux 6git-guiFix pending
Fix deferred
Red Hat Enterprise Linux 6git-svnFix pending
Fix deferred
Red Hat Enterprise Linux 6gitkFix pending
Fix deferred
Red Hat Enterprise Linux 6gitwebFix pending
Fix deferred
Red Hat Enterprise Linux 6perl-GitFix pending
Fix deferred
AlmaLinux 10git-allFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-core-docFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-emailFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-guiFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-instawebFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-subtreeFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10git-svnFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10gitkFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10gitwebFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10perl-GitFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 10perl-Git-SVNFixed2.47.3-1.el10_0ALSA-2025:11533
AlmaLinux 9gitFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-allFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-coreFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-core-docFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-credential-libsecretFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-daemonFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-emailFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-guiFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-instawebFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-subtreeFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9git-svnFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9gitkFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9gitwebFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9perl-GitFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 9perl-Git-SVNFixed2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux 8gitFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-allFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-coreFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-core-docFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-credential-libsecretFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-daemonFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-emailFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-guiFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-instawebFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-subtreeFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8git-svnFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8gitkFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8gitwebFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8perl-GitFixed2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux 8perl-Git-SVNFixed2.43.7-1.el8_10ALSA-2025:11534
Rocky Linux 9gitFixed0:2.47.3-1.el9_6RLSA-2025:11462
Rocky Linux 8gitFixed0:2.43.7-1.el8_10RLSA-2025:11534
Alpine Linux 3.24gitFixed2.48.1-r0ALPINE-CVE-2024-52006
Alpine Linux 3.23gitFixed2.48.1-r0ALPINE-CVE-2024-52006
Alpine Linux 3.22gitFixed2.48.1-r0ALPINE-CVE-2024-52006
Alpine Linux 3.21gitFixed2.47.2-r0ALPINE-CVE-2024-52006
Alpine Linux 3.20gitFixed2.45.3-r0ALPINE-CVE-2024-52006
Alpine Linux 3.19gitFixed2.43.6-r0ALPINE-CVE-2024-52006
Alpine Linux 3.18gitFixed2.40.4-r0ALPINE-CVE-2024-52006

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.