Home / git / git / CVE-2020-5260
CVE-2020-5260: is it exploited, and which versions of git are affected and fixed?
CVE-2020-5260 is an improper input validation vulnerability in git. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: git < 2.17.4, git >= 2.18.0, < 2.18.3, git >= 2.19.0, 2.19.4 and 7 more (CVE record by GitHub_M). Fixed in 2.17.4, 2.22.3, 2.18.3, 2.19.4 and 2 more (NVD). Severity: Critical (9.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:11 UTC.
What is 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 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.
From the CVE record by GitHub_M, last updated August 4, 2024, 08:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| 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 |
As the CVE record by GitHub_M states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| git | git | before 2.17.4 | application |
| git | git | from 2.22.0 before 2.22.3 | application |
| git-scm | git | from 2.18.0 before 2.18.3 | application |
| git-scm | git | from 2.19.0 before 2.19.4 | application |
| git-scm | git | from 2.20.0 before 2.20.3 | application |
| git-scm | git | from 2.21.0 before 2.21.2 | application |
| git-scm | git | from 2.23.0 before 2.23.2 | application |
| git-scm | git | from 2.24.0 before 2.24.2 | application |
| git-scm | git | from 2.25.0 before 2.25.3 | application |
| git-scm | git | from 2.26.0 before 2.26.1 | application |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 18.04 | operating system |
| canonical | ubuntu linux | 19.10 | operating system |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| fedoraproject | fedora | 30 | operating system |
| fedoraproject | fedora | 31 | operating system |
| fedoraproject | fedora | 32 | operating system |
| opensuse | leap | 15.1 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:21 UTC.
How severe is CVE-2020-5260?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-5260 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 14.9% probability of exploitation activity in the next 30 days, percentile 96.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q x_refsource_CONFIRM
- https://github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b x_refsource_MISC
- https://lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/ x_refsource_MISC
- DSA-4657 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20200415 [SECURITY] [DLA 2177-1] git security update mailing-list, x_refsource_MLIST
- [oss-security] 20200415 CVE-2020-5260: Git: malicious URLs may cause Git to present stored credentials to the wrong server mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html x_refsource_MISC
- [oss-security] 20200415 Re: CVE-2020-5260: Git: malicious URLs may cause Git to present stored credentials to the wrong server mailing-list, x_refsource_MLIST
- openSUSE-SU-2020:0524 vendor-advisory, x_refsource_SUSE
- https://support.apple.com/kb/HT211141 x_refsource_CONFIRM
- FEDORA-2020-cdef88bb89 vendor-advisory, x_refsource_FEDORA
- [oss-security] 20200420 CVE-2020-11008: Git: Malicious URLs can still cause Git to send a stored credential to the wrong server mailing-list, x_refsource_MLIST
- GLSA-202004-13 vendor-advisory, x_refsource_GENTOO
- FEDORA-2020-c6548b488f vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-f6b3b6fb18 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-b2a2c830cf vendor-advisory, x_refsource_FEDORA
- USN-4329-1 vendor-advisory, x_refsource_UBUNTU
- FEDORA-2020-4e093619bb vendor-advisory, x_refsource_FEDORA
- openSUSE-SU-2020:0598 vendor-advisory, x_refsource_SUSE
When was it published, and where is the official record?
- Reserved
- January 2, 2020
- Published
- April 14, 2020, 22:50 UTC
- CVE record updated
- August 4, 2024, 08:22 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:21 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:11 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect git?
- Jul 8, 2025CVE-2025-48384 git: interpretation Conflict exploited
- Nov 16, 2026CVE-2026-111760 git: link following (a symlink lets an attacker reach other files)
- Nov 12, 2026CVE-2026-114467 Git: out-of-bounds write (memory corruption)
- Nov 12, 2026CVE-2026-114466 Git: insufficient Granularity of Access Control
- Nov 12, 2026CVE-2026-114469 Git: out-of-bounds read
- Nov 12, 2026CVE-2026-113408 Git: path traversal (reading or writing files outside the intended folder)
- Nov 10, 2026CVE-2026-105437 Git: heap buffer overflow
- Jul 8, 2025CVE-2025-48385 git: argument injection
Questions about CVE-2020-5260
Is CVE-2020-5260 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 14.9% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of git are affected by CVE-2020-5260?
git < 2.17.4, git >= 2.18.0, < 2.18.3, git >= 2.19.0, 2.19.4, git >= 2.20.0, < 2.20.3, git >= 2.21.0, < 2.21.2, git >= 2.22.0, < 2.22.3 and 4 more, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2020-5260?
2.17.4, 2.22.3, 2.18.3, 2.19.4, 2.20.3 and 2.21.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-5260?
Critical (9.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2020-5260?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.