CVE & CISA-KEV Catalog

CVE-2020-5260

CRITICALEPSS 95th pctl
9.3
CVSS v3
NVD

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.

How to fix

Remediation Available
gitAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
git-allAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-coreAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
git-core-docAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-cvsAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-daemonAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
git-debuginfoAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
git-emailAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-guiAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-instawebAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-p4Amazon
Fixed in:0:2.23.1-1.amzn2.0.2
git-subtreeAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
Fixed in:0:2.23.1-1.amzn2.0.2
git-svnAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
gitkAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
gitwebAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
perl-GitAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
perl-Git-SVNAmazon
Fixed in:0:2.23.1-1.amzn2.0.2
gitDebian
Fixed in:1:2.26.1-1CVE-2020-5260
Fixed in:1:2.26.1-1CVE-2020-5260
Fixed in:1:2.26.1-1CVE-2020-5260
gitUbuntu
Fixed in:1:2.7.4-0ubuntu1.8USN-4329-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1:2.17.1-1ubuntu0.6USN-4329-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

GitWindows application
Affected:2.22.0 2.22.3Fixed in:2.22.3The Git Development Community
Affected:2.17.4Fixed in:2.17.4The Git Development Community

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Exploit Intelligence

10.05%probability of exploitation in 30 days
95thpercentile

Very high risk: more likely to be exploited than 95% of all known CVEs.

References

Related Vulnerabilities

Other CWE-20 (Improper Input Validation) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-3400Critical10.0100%KEV + Ransom-
CVE-2021-45105Medium5.9100%-Fix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-21985Critical9.8100%KEV + RansomFix
CVE-2020-3452High7.5100%KEVFix
CVE-2018-7600Critical9.8100%KEV + RansomFix

Common questions

How do I fix CVE-2020-5260?

Published advisories record a fix for 20 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2020-5260 being actively exploited?

Not that we know of. CVE-2020-5260 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 10.0% is the estimated probability that it will be exploited in the next 30 days. That is higher than 95% of all scored CVEs.

How severe is CVE-2020-5260?

CVE-2020-5260 has a CVSS v3 base score of 9.3, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2020-5260 affect?

Published advisories record a fix for git (Amazon), git-all (Amazon), git-core (Amazon), git-core-doc (Amazon), and 16 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2020-5260
CVE-2020-5260 severity badge

Markdown

[![CVE-2020-5260](https://tridentstack.com/cve/badge/CVE-2020-5260.svg)](https://tridentstack.com/cve/CVE-2020-5260)

HTML

<a href="https://tridentstack.com/cve/CVE-2020-5260"><img src="https://tridentstack.com/cve/badge/CVE-2020-5260.svg" alt="CVE-2020-5260"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.