CVE-2020-5260
Fixed in a distro release EPSS 10%CVSS 9.3
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.
Products: git
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.10 | git | 2.22.3-r0 |
| Alpine 3.11 | git | 2.24.2-r0 |
| Alpine 3.12 | git | 2.26.1-r0 |
| Alpine 3.13 | git | 2.26.1-r0 |
| Alpine 3.14 | git | 2.26.1-r0 |
| Alpine 3.15 | git | 2.26.1-r0 |
| Alpine 3.16 | git | 2.26.1-r0 |
| Alpine 3.17 | git | 2.26.1-r0 |
| Alpine 3.18 | git | 2.26.1-r0 |
| Alpine 3.19 | git | 2.26.1-r0 |
| Alpine 3.20 | git | 2.26.1-r0 |
| Alpine 3.21 | git | 2.26.1-r0 |
| Alpine 3.22 | git | 2.26.1-r0 |
| Alpine 3.23 | git | 2.26.1-r0 |
| Alpine 3.24 | git | 2.26.1-r0 |
| Alpine 3.8 | git | 2.18.3-r0 |
| Alpine 3.9 | git | 2.20.3-r0 |
| Amazon Linux 2 | git | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-all | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-core | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-core-doc | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-cvs | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-daemon | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-email | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-gui | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-instaweb | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-p4 | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-subtree | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | git-svn | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | gitk | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | gitweb | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | perl-Git | 2.23.1-1.amzn2.0.2 |
| Amazon Linux 2 | perl-Git-SVN | 2.23.1-1.amzn2.0.2 |
| Arch Linux | git | 2.26.1-1 |
| Debian 10 | git | 1:2.20.1-2+deb10u2 |
| Debian 12 | git | 1:2.26.1-1 |
| Debian 13 | git | 1:2.26.1-1 |
| Debian 14 | git | 1:2.26.1-1 |
| Debian 8 | git | 1:2.1.4-2.1+deb8u9 |
| Debian 9 | git | 1:2.11.0-3+deb9u6 |
| Red Hat Enterprise Linux 7 | emacs-git | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | emacs-git-el | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-all | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-bzr | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-cvs | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-daemon | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-debuginfo | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-email | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-gnome-keyring | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-gui | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-hg | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-instaweb | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-p4 | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | git-svn | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | gitk | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | gitweb | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | perl-Git | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 7 | perl-Git-SVN | 0:1.8.3.1-22.el7_8 |
| Red Hat Enterprise Linux 8 | git | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-all | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-core | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-core-debuginfo | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-core-doc | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-daemon | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-daemon-debuginfo | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-debuginfo | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-debugsource | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-email | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-gui | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-instaweb | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-subtree | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-svn | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | git-svn-debuginfo | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | gitk | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | gitweb | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | perl-Git | 0:2.18.2-2.el8_1 |
| Red Hat Enterprise Linux 8 | perl-Git-SVN | 0:2.18.2-2.el8_1 |
| Red Hat rhel e4s 8.0 | git | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-all | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-core | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-core-debuginfo | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-core-doc | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-daemon | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-daemon-debuginfo | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-debuginfo | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-debugsource | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-email | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-gui | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-instaweb | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-subtree | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-svn | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | git-svn-debuginfo | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | gitk | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | gitweb | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | perl-Git | 0:2.18.2-2.el8_0 |
| Red Hat rhel e4s 8.0 | perl-Git-SVN | 0:2.18.2-2.el8_0 |
| Red Hat rhel eus 7.7 | emacs-git | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | emacs-git-el | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-all | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-bzr | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-cvs | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-daemon | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-debuginfo | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-email | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-gnome-keyring | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-gui | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-hg | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-instaweb | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-p4 | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | git-svn | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | gitk | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | gitweb | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | perl-Git | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel eus 7.7 | perl-Git-SVN | 0:1.8.3.1-23.el7_7 |
| Red Hat rhel software collections 3 | rh-git218-git | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-all | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-core | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-core-doc | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-cvs | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-daemon | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-debuginfo | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-email | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-gui | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-instaweb | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-p4 | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-subtree | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-git-svn | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-gitk | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-gitweb | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-perl-Git | 0:2.18.2-3.el7 |
| Red Hat rhel software collections 3 | rh-git218-perl-Git-SVN | 0:2.18.2-3.el7 |
| SUSE Enterprise Storage 5 | git | 2.26.0-27.27.1 |
| SUSE Enterprise Storage 5 | git | 2.26.2-27.36.1 |
| SUSE Enterprise Storage 5 | pcre2 | 10.34-1.3.1 |
| SUSE Enterprise Storage 5 | perl-CGI | 4.38-1.3.1 |
| SUSE HPE Helion OpenStack 8 | git | 2.26.2-27.36.1 |
| SUSE HPE Helion OpenStack 8 | git | 2.26.0-27.27.1 |
| SUSE HPE Helion OpenStack 8 | pcre2 | 10.34-1.3.1 |
| SUSE HPE Helion OpenStack 8 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | git | 2.26.1-3.25.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | git | 2.26.1-3.25.2 |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise Server 12 SP1-LTSS | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP1-LTSS | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP1-LTSS | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP1-LTSS | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP4 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP4 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP4 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP4 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 12 SP5 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server 12 SP5 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server 12 SP5 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server 12 SP5 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server 15-LTSS | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP1 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP1 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP1 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP1 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | perl-CGI | 4.38-1.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | git | 2.16.4-3.20.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | pcre2 | 10.34-1.3.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | git | 2.26.0-27.27.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | git | 2.26.2-27.36.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | pcre2 | 10.34-1.3.1 |
| SUSE OpenStack Cloud 7 | git | 2.26.2-27.36.1 |
| SUSE OpenStack Cloud 7 | git | 2.26.0-27.27.1 |
| SUSE OpenStack Cloud 7 | pcre2 | 10.34-1.3.1 |
| SUSE OpenStack Cloud 7 | perl-CGI | 4.38-1.3.1 |
| SUSE OpenStack Cloud 8 | git | 2.26.2-27.36.1 |
| SUSE OpenStack Cloud 8 | git | 2.26.0-27.27.1 |
| SUSE OpenStack Cloud 8 | pcre2 | 10.34-1.3.1 |
| SUSE OpenStack Cloud 8 | perl-CGI | 4.38-1.3.1 |
| SUSE OpenStack Cloud Crowbar 8 | git | 2.26.2-27.36.1 |
| SUSE OpenStack Cloud Crowbar 8 | git | 2.26.0-27.27.1 |
| SUSE OpenStack Cloud Crowbar 8 | pcre2 | 10.34-1.3.1 |
| SUSE OpenStack Cloud Crowbar 8 | perl-CGI | 4.38-1.3.1 |
| Ubuntu 16.04 LTS | git | 1:2.7.4-0ubuntu1.8 |
| Ubuntu 18.04 LTS | git | 1:2.17.1-1ubuntu0.6 |
| openSUSE Leap 15.1 | git | 2.16.4-lp151.4.6.1 |
| openSUSE Leap 15.1 | git | 2.26.1-lp151.4.9.1 |
| openSUSE Tumbleweed | git | 2.33.0-1.3 |