CVE-2020-5260
published critical CVSS 3.1 · 9.3malicious URLs may cause Git to present stored credentials to the wrong server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| git | — | git< 2.17.4 · >= 2.18.0, < 2.18.3 · >= 2.19.0, 2.19.4 · >= 2.20.0, < 2.20.3 · >= 2.21.0, < 2.21.2 · >= 2.22.0, < 2.22.3 · >= 2.23.0, < 2.23.2 · >= 2.24.0, < 2.24.2 · >= 2.25.0, < 2.25.3 · >= 2.26.0, < 2.26.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2020-1409 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | git | Fixed | 2.26.1-r0 | Package fix record |
| Debian | buster | git | Advisory build | 1:2.20.1-2+deb10u2 | DSA-4657-1 |
| Oracle Linux | 7 | gitaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64 | Advisory build | 1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| SUSE / openSUSE | SLE-12-SP4 | gitaarch64 | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| Ubuntu | bionic | git | Advisory build | 1:2.17.1-1ubuntu0.6 | USN-4329-1 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.10 | git | Fixed | 2.22.3-r0 | Package fix record |
| Alpine Linux | v3.11 | git | Fixed | 2.24.2-r0 | Package fix record |
| Alpine Linux | v3.12 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.13 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.14 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.15 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.16 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.17 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.18 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.26.1-r0 | Package fix record |
| Alpine Linux | v3.8 | git | Fixed | 2.18.3-r0 | Package fix record |
| Alpine Linux | v3.9 | git | Fixed | 2.20.3-r0 | Package fix record |
| Debian | jessie | git | Advisory build | 1:2.1.4-2.1+deb8u9 | DLA-2177-1 |
| Debian | stretch | git | Advisory build | 1:2.11.0-3+deb9u6 | DSA-4657-1 |
| Oracle Linux | 7 | gitx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 8 | gitaarch64 | Advisory build | 0:2.18.2-2.el8_1 | ELSA-2020-1513 |
| Oracle Linux | 8 | gitx86_64 | Advisory build | 0:2.18.2-2.el8_1 | ELSA-2020-1513 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64 | Advisory build | 1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64le | Advisory build | 1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64le | Advisory build | 1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat Enterprise Linux | RHEL-7 | gits390x | Advisory build | 1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| Red Hat Enterprise Linux | RHEL-7 | gits390x | Advisory build | 1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat Enterprise Linux | RHEL-7 | gitsrc | Advisory build | 1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| Red Hat Enterprise Linux | RHEL-7 | gitsrc | Advisory build | 1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat Enterprise Linux | RHEL-7 | gitx86_64 | Advisory build | 1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| Red Hat Enterprise Linux | RHEL-7 | gitx86_64 | Advisory build | 1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.18.2-2.el8_1 | RHSA-2020:1513 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.18.2-2.el8_0 | RHSA-2020:1518 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.18.2-2.el8_1 | RHSA-2020:1513 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.18.2-2.el8_1 | RHSA-2020:1513 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.18.2-2.el8_0 | RHSA-2020:1518 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.18.2-2.el8_1 | RHSA-2020:1513 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.18.2-2.el8_0 | RHSA-2020:1518 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.18.2-2.el8_1 | RHSA-2020:1513 |
| SUSE / openSUSE | SLE-12-SP4 | gitaarch64 | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitppc64le | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitppc64le | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP4 | gits390x | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP4 | gits390x | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitx86_64 | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitx86_64 | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitaarch64 | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitaarch64 | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitppc64le | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitppc64le | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP5 | gits390x | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP5 | gits390x | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitx86_64 | Advisory build | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitx86_64 | Advisory build | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE / openSUSE | SLE-15 | gitaarch64 | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15 | gitppc64le | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15 | gits390x | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15 | gitx86_64 | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitaarch64 | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitaarch64 | Advisory build | 2.26.1-3.25.2 | SUSE-SU-2020:1121-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitppc64le | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitppc64le | Advisory build | 2.26.1-3.25.2 | SUSE-SU-2020:1121-1 |
| SUSE / openSUSE | SLE-15-SP1 | gits390x | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15-SP1 | gits390x | Advisory build | 2.26.1-3.25.2 | SUSE-SU-2020:1121-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitx86_64 | Advisory build | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitx86_64 | Advisory build | 2.26.1-3.25.2 | SUSE-SU-2020:1121-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | giti586 | Advisory build | 2.16.4-lp151.4.6.1 | OPENSUSE-SU-2020:0524-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | gitx86_64 | Advisory build | 2.16.4-lp151.4.6.1 | OPENSUSE-SU-2020:0524-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | gitx86_64 | Advisory build | 2.26.1-lp151.4.9.1 | OPENSUSE-SU-2020:0598-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitaarch64 | Advisory build | 2.33.0-1.3 | OPENSUSE-SU-2024:10786-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitppc64le | Advisory build | 2.33.0-1.3 | OPENSUSE-SU-2024:10786-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gits390x | Advisory build | 2.33.0-1.3 | OPENSUSE-SU-2024:10786-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitx86_64 | Advisory build | 2.33.0-1.3 | OPENSUSE-SU-2024:10786-1 |
| Ubuntu | xenial | git | Advisory build | 1:2.7.4-0ubuntu1.8 | USN-4329-1 |
| Oracle Linux | 7 | emacs-gitaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | emacs-gitx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | emacs-git-elaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | emacs-git-elx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-allaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-allx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-bzraarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-bzrx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-cvsaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-cvsx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-daemonaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-daemonx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-emailaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-emailx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-gnome-keyringaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-gnome-keyringx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-guiaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-guix86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-hgaarch64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
| Oracle Linux | 7 | git-hgx86_64 | Advisory build | 0:1.8.3.1-22.el7_8 | ELSA-2020-1511 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| git | git | < 2.17.4 (affected)>= 2.18.0, < 2.18.3 (affected)>= 2.19.0, 2.19.4 (affected)>= 2.20.0, < 2.20.3 (affected)>= 2.21.0, < 2.21.2 (affected)>= 2.22.0, < 2.22.3 (affected)>= 2.23.0, < 2.23.2 (affected)>= 2.24.0, < 2.24.2 (affected)>= 2.25.0, < 2.25.3 (affected)>= 2.26.0, < 2.26.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
19- openSUSE-SU-2020:0524 http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00027.html
- openSUSE-SU-2020:0598 http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- http://packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html
- [oss-security] 20200415 CVE-2020-5260: Git: malicious URLs may cause Git to present stored credentials to the wrong server http://www.openwall.com/lists/oss-security/2020/04/15/5
- [oss-security] 20200415 Re: CVE-2020-5260: Git: malicious URLs may cause Git to present stored credentials to the wrong server http://www.openwall.com/lists/oss-security/2020/04/15/6
- [oss-security] 20200420 CVE-2020-11008: Git: Malicious URLs can still cause Git to send a stored credential to the wrong server http://www.openwall.com/lists/oss-security/2020/04/20/1
- https://github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
- [debian-lts-announce] 20200415 [SECURITY] [DLA 2177-1] git security update https://lists.debian.org/debian-lts-announce/2020/04/msg00010.html
- FEDORA-2020-4e093619bb https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74Q7WVJ6FKLIN62VS2JD2XCNWK5TNKOW/
- FEDORA-2020-c6548b488f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7TVS5UG6JD3MYIGSBKMIOS6AF7CR5IPI/
- FEDORA-2020-b2a2c830cf https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MOCTR2SEHCPSCOVUQJAGFPGKFMI2VE6V/
- FEDORA-2020-f6b3b6fb18 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN3FUOXKX3AXTULYV53ACABER2W2FSOU/
- FEDORA-2020-cdef88bb89 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPCEOIFLLEF24L6GLVJVFZX4CREDEHDF/
- https://lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/
- GLSA-202004-13 https://security.gentoo.org/glsa/202004-13
- https://support.apple.com/kb/HT211141
- USN-4329-1 https://usn.ubuntu.com/4329-1/
- DSA-4657 https://www.debian.org/security/2020/dsa-4657
Provider assertions
2GitHub_M · cna
malicious URLs may cause Git to present stored credentials to the wrong server
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 548b4fd54319e18095913728ec387da05a393b175775acc13ba43c4799b417a7
- Ingested
- 23 Sep 2026, 07:51:02 UTC
- Source record
- Official CVE record