Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external "credential helper" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. Specially-crafted URLs that contain an encoded newline can inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., good.example.com) for an HTTP request being made to another server (e.g., evil.example.com), resulting in credentials for the former being sent to the latter. There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any host to a host of their choosing. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious; the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git. The problem has been patched in the versions published on April 14th, 2020, going back to v2.17.x. Anyone wishing to backport the change further can do so by applying commit 9a6bbee (the full release includes extra checks for git fsck, but that commit is sufficient to protect clients against the vulnerability). The patched versions are: 2.17.4, 2.18.3, 2.19.4, 2.20.3, 2.21.2, 2.22.3, 2.23.2, 2.24.2, 2.25.3, 2.26.1.
CVSS Details
- CVSS 3.1 Base Score: 9.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade git | Aug 22, 2024 | Apr 14, 2020 |
| Amazon Linux Ami 2 | — | Upgrade gitkUpgrade git-cvsUpgrade gitUpgrade git-core-docUpgrade git-coreUpgrade gitwebUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade git-p4Upgrade git-daemonUpgrade git-svnUpgrade git-instawebUpgrade git-allUpgrade git-emailUpgrade git-guiUpgrade git-debuginfoUpgrade perl-Git | Apr 27, 2020 | Apr 14, 2020 |
| Amazon_linux | — | Upgrade git | Apr 17, 2020 | Apr 14, 2020 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Apr 14, 2020 |
| Centos_linux | — | Upgrade emacs-git-elUpgrade gitwebUpgrade gitUpgrade git-gnome-keyringUpgrade git-allUpgrade git-svnUpgrade perl-GitUpgrade git-coreUpgrade git-cvsUpgrade git-bzrUpgrade git-subtreeUpgrade git-emailUpgrade git-debugsourceUpgrade git-daemonUpgrade git-daemon-debuginfoUpgrade git-p4Upgrade git-core-debuginfoUpgrade git-svn-debuginfoUpgrade git-core-docUpgrade git-hgUpgrade git-debuginfoUpgrade gitkUpgrade git-instawebUpgrade git-guiUpgrade perl-Git-SVNUpgrade emacs-git | Apr 22, 2020 | Apr 14, 2020 |
| Debian | — | Upgrade git | Apr 16, 2020 | Apr 14, 2020 |
| Freebsd | — | Upgrade git-guiUpgrade git-liteUpgrade git | Jun 5, 2020 | Apr 22, 2020 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Apr 24, 2020 | Apr 14, 2020 |
| Huawei Euleros 2_0_sp2 | — | Upgrade git | Jun 17, 2020 | Apr 14, 2020 |
| Huawei Euleros 2_0_sp3 | — | Upgrade git | Sep 28, 2020 | Apr 14, 2020 |
| Huawei Euleros 2_0_sp5 | — | Upgrade git-coreUpgrade gitUpgrade git-core-doc | Jun 3, 2020 | Apr 14, 2020 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-coreUpgrade gitUpgrade git-core-doc | Apr 21, 2020 | Apr 14, 2020 |
| Huawei Euleros 2_0_sp9 | — | Upgrade gitUpgrade git-help | Sep 29, 2021 | Apr 14, 2020 |
| Oracle Solaris | — | Upgrade developer/versioning/git to version 2.19.5-11.4.24.0.1.75.1 on Solaris 11.4 | Jan 19, 2021 | Apr 14, 2020 |
| Oracle_linux | — | Upgrade git-instawebUpgrade git-daemonUpgrade git-emailUpgrade git-p4Upgrade emacs-gitUpgrade git-guiUpgrade git-bzrUpgrade git-coreUpgrade git-svnUpgrade git-allUpgrade perl-GitUpgrade emacs-git-elUpgrade gitUpgrade gitwebUpgrade perl-Git-SVNUpgrade git-subtreeUpgrade git-core-docUpgrade gitkUpgrade git-gnome-keyringUpgrade git-cvsUpgrade git-hg | Oct 5, 2022 | Apr 14, 2020 |
| Redhat_linux | — | Upgrade git-emailUpgrade git-coreUpgrade git-subtreeUpgrade git-core-debuginfoUpgrade git-cvsUpgrade git-svnUpgrade git-debuginfoUpgrade git-svn-debuginfoUpgrade git-bzrUpgrade emacs-gitUpgrade git-instawebUpgrade perl-Git-SVNUpgrade perl-GitUpgrade git-guiUpgrade git-daemonUpgrade git-p4Upgrade emacs-git-elUpgrade git-core-docUpgrade git-hgUpgrade git-debugsourceUpgrade git-gnome-keyringUpgrade gitwebUpgrade gitUpgrade git-allUpgrade git-daemon-debuginfoUpgrade gitk | Apr 22, 2020 | Apr 14, 2020 |
| Suse | — | Upgrade git-archUpgrade perl-CGIUpgrade gitUpgrade git-credential-libsecretUpgrade git-svnUpgrade libpcre2-16-0Upgrade git-coreUpgrade libpcre2-8-0Upgrade git-webUpgrade git-credential-gnome-keyringUpgrade git-cvsUpgrade git-daemonUpgrade gitkUpgrade libpcre2-posix2Upgrade git-guiUpgrade pcre2-toolsUpgrade pcre2-devel-staticUpgrade git-p4Upgrade git-emailUpgrade git-docUpgrade pcre2-develUpgrade libpcre2-32-0 | Apr 15, 2020 | Apr 14, 2020 |
| Ubuntu | — | Upgrade git | Apr 15, 2020 | Apr 14, 2020 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Apr 14, 2020 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub