# CVE-2020-5260: malicious URLs may cause Git to present stored credentials to the wrong server

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 15% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2020-04-14 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2020-5260, MGASA-2020-0175, SUSE-SU-2020:0991-1, SUSE-SU-2020:0992-1, RHSA-2020:1503, RHSA-2020:1511, RHSA-2020:1513, RHSA-2020:1518, UBUNTU-CVE-2020-5260, USN-4329-1, DEBIAN-CVE-2020-5260, DLA-2177-1, DSA-4657-1, openSUSE-SU-2020:0524-1
- Record: https://cvemate.com/vulnerability/CVE-2020-5260 · JSON: https://cvemate.com/vulnerability/CVE-2020-5260/json

## Description

```text
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.
```

## Signals

- CVSS: 9.3 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- EPSS: 14.887%, percentile 96.798%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 115)

- alpine git (Alpine Linux): ≥ 2.22.0, \< 2.24.2-r0 \| ≥ 2.22.0, \< 2.26.1-r0 \| ≥ 2.22.0, \< 2.18.3-r0 \| ≥ 2.22.0, \< 2.20.3-r0 \| ≥ 2.22.0, \< 2.22.3-r0 \| ≥ 2.24.0, \< 2.24.2-r0 \| ≥ 2.26.0, \< 2.26.1-r0 \| ≥ 2.18.0, \< 2.18.3-r0 \| ≥ 2.20.0, \< 2.20.3-r0
- canonical ubuntu\_linux: 16.04 \| 18.04 \| 19.10
- debian git (Debian): \< 1:2.26.1-1 \| \< 1:2.1.4-2.1+deb8u9 \| \< 1:2.11.0-3+deb9u6 \| \< 1:2.20.1-2+deb10u2
- ubuntu git (Ubuntu): \< 1:2.7.4-0ubuntu1.8 \| \< 1:2.17.1-1ubuntu0.6
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- fedoraproject fedora: 30 \| 31 \| 32
- git-scm git: ≥ 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.23.0, \< 2.23.2 \| ≥ 2.24.0, \< 2.24.2 \| ≥ 2.25.0, \< 2.25.3 \| ≥ 2.26.0, \< 2.26.1
- git git: ≥ 2.18.0, \< 2.18.3 \| ≥ 2.19.0, 2.19.4 (No fix recorded) \| ≥ 2.20.0, \< 2.20.3 \| ≥ 2.21.0, \< 2.21.2 \| ≥ 2.23.0, \< 2.23.2 \| ≥ 2.24.0, \< 2.24.2 \| ≥ 2.25.0, \< 2.25.3 \| ≥ 2.26.0, \< 2.26.1 \| \< 2.17.4 \| ≥ 2.22.0, \< 2.22.3
- mageia git (Mageia): \< 2.21.2-1.mga7
- opensuse leap: 15.1
- opensuse git&distro=openSUSE Leap 15.1 (openSUSE): \< 2.16.4-lp151.4.6.1
- redhat emacs-git (Red Hat): \< 0:1.8.3.1-22.el7\_8
- redhat emacs-git-el (Red Hat): \< 0:1.8.3.1-22.el7\_8
- redhat git (Red Hat): \< 0:1.8.3.1-22.el7\_8 \| \< 0:2.18.2-2.el8\_1 \| \< 0:2.18.2-2.el8\_0
- redhat git-all (Red Hat): \< 0:1.8.3.1-22.el7\_8 \| \< 0:2.18.2-2.el8\_1 \| \< 0:2.18.2-2.el8\_0
- redhat git-bzr (Red Hat): \< 0:1.8.3.1-22.el7\_8
- redhat git-core (Red Hat): \< 0:2.18.2-2.el8\_1 \| \< 0:2.18.2-2.el8\_0
- redhat git-core-debuginfo (Red Hat): \< 0:2.18.2-2.el8\_1 \| \< 0:2.18.2-2.el8\_0
- redhat git-core-doc (Red Hat): \< 0:2.18.2-2.el8\_1 \| \< 0:2.18.2-2.el8\_0
- redhat git-cvs (Red Hat): \< 0:1.8.3.1-22.el7\_8

## References (first 20 of 45)

- <https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q>
- <https://github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b>
- <https://lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/>
- <https://www.debian.org/security/2020/dsa-4657>
- <https://lists.debian.org/debian-lts-announce/2020/04/msg00010.html>
- <http://www.openwall.com/lists/oss-security/2020/04/15/5>
- <http://packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html>
- <http://www.openwall.com/lists/oss-security/2020/04/15/6>
- <http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00027.html>
- <https://support.apple.com/kb/HT211141>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPCEOIFLLEF24L6GLVJVFZX4CREDEHDF/>
- <http://www.openwall.com/lists/oss-security/2020/04/20/1>
- <https://security.gentoo.org/glsa/202004-13>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7TVS5UG6JD3MYIGSBKMIOS6AF7CR5IPI/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN3FUOXKX3AXTULYV53ACABER2W2FSOU/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MOCTR2SEHCPSCOVUQJAGFPGKFMI2VE6V/>
- <https://usn.ubuntu.com/4329-1/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74Q7WVJ6FKLIN62VS2JD2XCNWK5TNKOW/>
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html>
- <https://security.alpinelinux.org/vuln/CVE-2020-5260>

---

Data as of 2026-12-05T03:12:15.659Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
