CVE-2020-5260: malicious URLs may cause Git to present stored credentials to the wrong server
Noroxi assessment
Priority: Monitor (action score 33/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 9.9% (FIRST EPSS); higher than 95.5% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: git (Alpine:v3.10) 2.22.3-r0; git (Alpine:v3.11) 2.24.2-r0; git (Alpine:v3.12) 2.26.1-r0.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to git (Alpine:v3.10) 2.22.3-r0; git (Alpine:v3.11) 2.24.2-r0; git (Alpine:v3.12) 2.26.1-r0 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Apr 14, 2020
- Updated
- Jun 16, 2026
- EPSS
- 9.9% · 95th percentile
- CWE
- CWE-20
Report tools
Action score
33
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 9.9%
CNA vs NVD score
- NVD
- 7.5
- CNA · GitHub_M
- 9.3
- 1.8 point gap
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| git | git | cpe:2.3:a:git:git |
| git-scm | git | cpe:2.3:a:git-scm:git |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- canonical ubuntu linux19.10
- debian debian linux10.0
- debian debian linux8.0
- debian debian linux9.0
- fedoraproject fedora30
- fedoraproject fedora31
- fedoraproject fedora32
- git gitbefore 2.17.4
- git git2.22.0 and later · before 2.22.3
- git-scm git2.26.0 and later · before 2.26.1
- git-scm git2.25.0 and later · before 2.25.3
- git-scm git2.24.0 and later · before 2.24.2
- git-scm git2.23.0 and later · before 2.23.2
- git-scm git2.21.0 and later · before 2.21.2
- git-scm git2.20.0 and later · before 2.20.3
- git-scm git2.19.0 and later · before 2.19.4
- git-scm git2.18.0 and later · before 2.18.3
- opensuse leap15.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
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.1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.10 | git | from 2.22.0 · before 2.22.3-r0 | 2.22.3-r0 |
| Alpine:v3.11 | git | from 2.22.0 · before 2.24.2-r0 | 2.24.2-r0 |
| Alpine:v3.12 | git | from 2.22.0 · before 2.26.1-r0 | 2.26.1-r0 |
| Alpine:v3.8 | git | from 2.22.0 · before 2.18.3-r0 | 2.18.3-r0 |
| Alpine:v3.9 | git | from 2.22.0 · before 2.20.3-r0 | 2.20.3-r0 |
| Debian:10 | git | before 1:2.20.1-2+deb10u2 | 1:2.20.1-2+deb10u2 |
| Debian:12 | git | before 1:2.26.1-1 | 1:2.26.1-1 |
| Debian:8 | git | before 1:2.1.4-2.1+deb8u9 | 1:2.1.4-2.1+deb8u9 |
| Debian:9 | git | before 1:2.11.0-3+deb9u6 | 1:2.11.0-3+deb9u6 |
| openSUSE:Leap 15.1 | git | before 2.26.1-lp151.4.9.1 | 2.26.1-lp151.4.9.1 |
| openSUSE:Leap 15.1 | git | before 2.16.4-lp151.4.6.1 | 2.16.4-lp151.4.6.1 |
| openSUSE:Tumbleweed | git | before 2.33.0-1.3 | 2.33.0-1.3 |
| Red Hat:enterprise_linux:7::client | emacs-git | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | emacs-git-el | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-all | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-bzr | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-cvs | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-daemon | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-debuginfo | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-email | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-gnome-keyring | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-gui | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
| Red Hat:enterprise_linux:7::client | git-hg | before 0:1.8.3.1-22.el7_8 | 0:1.8.3.1-22.el7_8 |
+87
Same product
git: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-32002Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution45Plan
- CVE-2022-25648The package git before 1.11.0 are vulnerable to Command Injection via git argument injection.40Plan
- CVE-2025-48385Git alllows arbitrary file writes via bundle-uri parameter injection34Monitor
Published before and after this one in the same product
- ← EarlierCVE-2009-2108Jun 18, 2009 · git-daemon in git 1.4.4.5 through 1.6.3 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a reque22Monitor
- ← EarlierCVE-2010-3906Dec 17, 2010 · Cross-site scripting (XSS) vulnerability in Gitweb 1.7.3.3 and earlier allows remote attackers to inject arbitrary web script or HTML via th19Monitor
- Later →CVE-2024-50349Jan 14, 2025 · Git does not sanitize URLs when asking for credentials interactively8Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:git | 2.22.3-r0 · Alpine:v3.10 | Package registry (OSV) |
| debian:git | 1:2.26.1-1 · Debian:12 | Package registry (OSV) |
| opensuse:git | 2.16.4-lp151.4.6.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| red hat:rh-git218-git | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-all | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-core | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-core-doc | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-cvs | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-daemon | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-debuginfo | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-email | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-gui | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-instaweb | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-p4 | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-git218-git-subtree | 0:2.18.2-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| suse:git | 2.16.4-3.20.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:pcre2 | 10.34-1.3.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:perl-CGI | 4.38-1.3.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×3
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:37 | 2020-04-15 |
| Proof-of-concept repository on GitHub | stars:0 | 2020-04-15 |
| Proof-of-concept repository on GitHub | stars:11 | 2020-04-16 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoCsame day
- TodayOct 26, 2026+2386 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-20-625 · Aug 20, 2020(Foxit Güvenlik Güncellemesi)
- TR-20-237 · Apr 15, 2020(Git Güvenlik Güncellemesi Yayınladı)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (18 more)Show less
- lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html
- www.openwall.com/lists/oss-security/2020/04/15/5
- www.openwall.com/lists/oss-security/2020/04/15/6
- www.openwall.com/lists/oss-security/2020/04/20/1
- github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b
- github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
- lists.debian.org/debian-lts-announce/2020/04/msg00010.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74Q7WVJ6FKLIN62VS2JD2XCNWK5TNKOW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7TVS5UG6JD3MYIGSBKMIOS6AF7CR5IPI/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MOCTR2SEHCPSCOVUQJAGFPGKFMI2VE6V/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN3FUOXKX3AXTULYV53ACABER2W2FSOU/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPCEOIFLLEF24L6GLVJVFZX4CREDEHDF/
- lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/
- security.gentoo.org/glsa/202004-13
- support.apple.com/kb/HT211141
- usn.ubuntu.com/4329-1/
- www.debian.org/security/2020/dsa-4657
Vendor advisories and official records. Exploit/PoC links are deliberately left out.