CVE-2024-52006Newline 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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | git | Fixed | 1:2.43.0-1ubuntu7.2 | UBUNTU-CVE-2024-52006 |
| Ubuntu 22.04 | git | Fixed | 1:2.34.1-1ubuntu1.12 | UBUNTU-CVE-2024-52006 |
| Ubuntu 20.04 | git | Fixed | 1:2.25.1-1ubuntu3.14 | UBUNTU-CVE-2024-52006 |
| Ubuntu 18.04 | git | Fix pending | 1:2.17.1-1ubuntu0.18+esm6 (Ubuntu Pro) | UBUNTU-CVE-2024-52006 |
| Ubuntu 16.04 | git | Fix pending | 1:2.7.4-0ubuntu1.10+esm13 (Ubuntu Pro) | UBUNTU-CVE-2024-52006 |
| Debian 14 | git | Fixed | 1:2.47.2-0.1 | DEBIAN-CVE-2024-52006 |
| Debian 13 | git | Fixed | 1:2.47.2-0.1 | DEBIAN-CVE-2024-52006 |
| Debian 12 | git | Fixed | 1:2.39.5-0+deb12u2 | DEBIAN-CVE-2024-52006 |
| Red Hat Enterprise Linux 10 | git | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-all | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-core | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-core-doc | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-credential-libsecret | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-daemon | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-email | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-gui | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-instaweb | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-subtree | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-svn | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | gitk | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | gitweb | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | perl-Git | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | perl-Git-SVN | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 9 | git | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-all | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-core | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-core-doc | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-credential-libsecret | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-daemon | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-email | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-gui | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-instaweb | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-subtree | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-svn | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | gitk | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | gitweb | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | perl-Git | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | perl-Git-SVN | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 8 | git | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-all | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-core | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-core-doc | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-credential-libsecret | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-daemon | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-email | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-gui | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-instaweb | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-subtree | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-svn | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | gitk | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | gitweb | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | perl-Git | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | perl-Git-SVN | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 7 | emacs-git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | emacs-git-el | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-bzr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-cvs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-gnome-keyring | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-hg | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-instaweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-p4 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-Git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-Git-SVN | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | emacs-git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | emacs-git-el | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-cvs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | perl-Git | Fix pending Fix deferred | ||
| AlmaLinux 10 | git-all | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-core-doc | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-email | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-gui | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-instaweb | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-subtree | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-svn | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | gitk | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | gitweb | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | perl-Git | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | perl-Git-SVN | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 9 | git | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-all | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-core | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-core-doc | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-credential-libsecret | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-daemon | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-email | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-gui | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-instaweb | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-subtree | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-svn | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | gitk | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | gitweb | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | perl-Git | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | perl-Git-SVN | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 8 | git | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-all | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-core | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-core-doc | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-credential-libsecret | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-daemon | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-email | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-gui | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-instaweb | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-subtree | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-svn | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | gitk | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | gitweb | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | perl-Git | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | perl-Git-SVN | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| Rocky Linux 9 | git | Fixed | 0:2.47.3-1.el9_6 | RLSA-2025:11462 |
| Rocky Linux 8 | git | Fixed | 0:2.43.7-1.el8_10 | RLSA-2025:11534 |
| Alpine Linux 3.24 | git | Fixed | 2.48.1-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.23 | git | Fixed | 2.48.1-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.22 | git | Fixed | 2.48.1-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.21 | git | Fixed | 2.47.2-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.20 | git | Fixed | 2.45.3-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.19 | git | Fixed | 2.43.6-r0 | ALPINE-CVE-2024-52006 |
| Alpine Linux 3.18 | git | Fixed | 2.40.4-r0 | ALPINE-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.
- git: affected: <= 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
References
- https://github.com/git/git/security/advisories/GHSA-r5ph-xg7q-xfrp
- https://github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8g
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
- https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060
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.