CVE-2020-5260
CVE-2020-5260 — malicious URLs may cause Git to present stored credentials to the wrong server
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
15%
chance of exploitation in 30 days
CVSS base
9.3
CRITICAL
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.3 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-20
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
Indexed by
References
19 on the record
- github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
x_refsource_CONFIRM
- github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b
x_refsource_MISC
- lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/
x_refsource_MISC
- www.debian.org/security/2020/dsa-4657
vendor-advisory, x_refsource_DEBIAN
- lists.debian.org/debian-lts-announce/2020/04/msg00010.html
mailing-list, x_refsource_MLIST
- www.openwall.com/lists/oss-security/2020/04/15/5
mailing-list, x_refsource_MLIST
- packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html
x_refsource_MISC
- www.openwall.com/lists/oss-security/2020/04/15/6
mailing-list, x_refsource_MLIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-48384 Git allows arbitrary code execution through broken config quotingCVSS 8.0 · CISA KEV
- CVE-2026-111760 Git: Recursive clones are susceptible to Remote Code ExecutionCVSS 8.0
- CVE-2026-100408 Git for Windows: git-credential-wincred Erase Path Heap OverflowCVSS 4.4
- CVE-2026-100407 Git for Windows: git-credential-wincred OAuth Store Heap OverflowCVSS 4.4
- CVE-2026-93952 Security Advisory 0183CVSS 10.0 · CISA KEV
- CVE-2026-34910 Ubiquiti UniFi OS Improper Input Validation VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.