CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
14.9% in 30 days
higher than 97% of CVEs; FIRST, December 2, 2026

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?

VendorProductAffectedFixed or not affected from
gitgit< 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?

VendorProductVersionsType
gitgitbefore 2.17.4application
gitgitfrom 2.22.0 before 2.22.3application
git-scmgitfrom 2.18.0 before 2.18.3application
git-scmgitfrom 2.19.0 before 2.19.4application
git-scmgitfrom 2.20.0 before 2.20.3application
git-scmgitfrom 2.21.0 before 2.21.2application
git-scmgitfrom 2.23.0 before 2.23.2application
git-scmgitfrom 2.24.0 before 2.24.2application
git-scmgitfrom 2.25.0 before 2.25.3application
git-scmgitfrom 2.26.0 before 2.26.1application
canonicalubuntu linux16.04operating system
canonicalubuntu linux18.04operating system
canonicalubuntu linux19.10operating system
debiandebian linux8.0operating system
debiandebian linux9.0operating system
debiandebian linux10.0operating system
fedoraprojectfedora30operating system
fedoraprojectfedora31operating system
fedoraprojectfedora32operating system
opensuseleap15.1operating system

NVD analysis (status Modified), last modified June 17, 2026, 03:21 UTC.

How severe is CVE-2020-5260?

ScoreVersionVectorSource
Critical 9.3CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NGitHub_M
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NNVD
Medium 5.0CVSS 2.0AV:N/AC:L/Au:N/C:P/I:N/A:NNVD

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?

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?

Every CVE in git

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.