CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NHigh (7.5). EPSS 15% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExplain CVE-2020-5260 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5260?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5260?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-5260 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| git:git | before 2.17.4 |
| git:git | from 2.22.0 before 2.22.3 |
| git-scm:git | from 2.18.0 before 2.18.3 |
| git-scm:git | from 2.19.0 before 2.19.4 |
| git-scm:git | from 2.20.0 before 2.20.3 |
| git-scm:git | from 2.21.0 before 2.21.2 |
| git-scm:git | from 2.23.0 before 2.23.2 |
| git-scm:git | from 2.24.0 before 2.24.2 |
| git-scm:git | from 2.25.0 before 2.25.3 |
| git-scm:git | from 2.26.0 before 2.26.1 |
| canonical:ubuntu_linux | 16.04 |
| canonical:ubuntu_linux | 18.04 |
| canonical:ubuntu_linux | 19.10 |
| debian:debian_linux | 8.0 |
| debian:debian_linux | 9.0 |
| debian:debian_linux | 10.0 |
| fedoraproject:fedora | 30 |
| fedoraproject:fedora | 31 |
| fedoraproject:fedora | 32 |
| opensuse:leap | 15.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 8 | git | 1:2.1.4-2.1+deb8u9 | DLA-2177-1 |
| Debian | 9 | git | 1:2.11.0-3+deb9u6 | DSA-4657-1 |
| Debian | 10 | git | 1:2.20.1-2+deb10u2 | DSA-4657-1 |
| Debian | 12, 13, 14 | git | 1:2.26.1-1 | DEBIAN-CVE-2020-5260 |
| Ubuntu | 16.04:LTS | git | 1:2.7.4-0ubuntu1.8 | UBUNTU-CVE-2020-5260 USN-4329-1 |
| Ubuntu | 18.04:LTS | git | 1:2.17.1-1ubuntu0.6 | UBUNTU-CVE-2020-5260 USN-4329-1 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 more | git, gitk, git-hg and 16 more | 0:1.8.3.1-22.el7_8 | RHSA-2020:1511 |
| Red Hat | enterprise_linux:8::appstream | git, gitk, gitweb and 16 more | 0:2.18.2-2.el8_1 | RHSA-2020:1513 |
| Red Hat | rhel_e4s:8.0::appstream | git, gitk, gitweb and 16 more | 0:2.18.2-2.el8_0 | RHSA-2020:1518 |
| Red Hat | rhel_eus:7.7::computenode, rhel_eus:7.7::server | git, gitk, git-hg and 16 more | 0:1.8.3.1-23.el7_7 | RHSA-2020:3581 |
| Red Hat | rhel_software_collections:3::el7 | rh-git218-git, rh-git218-gitk, rh-git218-git-p4 and 14 more | 0:2.18.2-3.el7 | RHSA-2020:1503 |
| SUSE | Enterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 16 more | git | 2.26.0-27.27.1 | SUSE-SU-2020:0992-1 |
| SUSE | Enterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 16 more | git | 2.26.2-27.36.1 | SUSE-SU-2020:1295-1 |
| SUSE | Enterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 16 more | pcre2 | 10.34-1.3.1 | SUSE-SU-2020:0992-1 |
| SUSE | Enterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 14 more | perl-CGI | 4.38-1.3.1 | SUSE-SU-2020:0992-1 |
| SUSE | Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 3 more | git | 2.16.4-3.20.1 | SUSE-SU-2020:0991-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Development Tools 15 SP1 | git | 2.26.1-3.25.2 | SUSE-SU-2020:1121-1 |
| openSUSE | Leap 15.1 | git | 2.16.4-lp151.4.6.1 | openSUSE-SU-2020:0524-1 |
| openSUSE | Leap 15.1 | git | 2.26.1-lp151.4.9.1 | openSUSE-SU-2020:0598-1 |
| openSUSE | Tumbleweed | git | 2.33.0-1.3 | openSUSE-SU-2024:10786-1 |
| Alpine | v3.8 | git | 2.18.3-r0 | ALPINE-CVE-2020-5260 |
| Alpine | v3.9 | git | 2.20.3-r0 | ALPINE-CVE-2020-5260 |
| Alpine | v3.10 | git | 2.22.3-r0 | ALPINE-CVE-2020-5260 |
| Alpine | v3.11 | git | 2.24.2-r0 | ALPINE-CVE-2020-5260 |
| Alpine | v3.12, v3.13, v3.14 and 10 more | git | 2.26.1-r0 | ALPINE-CVE-2020-5260 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
Red Hat Enterprise Linux 6 is not affected by this flaw as the vulnerable version of git, version 1.7.9-rc0 and later, was never packaged for this instance of RHEL.
The most complete workaround is to disable credential helpers altogether:
~~~
git config --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
~~~
An alternative is to avoid malicious URLs:
1. Examine the hostname and username portion of URLs fed to git clone for the presence of encoded newlines (%0a) or evidence of credential-protocol injections (e.g., host=github.com)
2. Avoid using submodules with untrusted repositories (don't use clone --recurse-submodules; use git submodule update only after examining the URLs found in .gitmodules)
3. Avoid tools which may run git clone on untrusted URLs under the hood
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | git-0:1.8.3.1-22.el7_8 | Fixed 2020-04-21 | RHSA-2020:1511 |
| Red Hat Enterprise Linux 7.7 Extended Update Support | git-0:1.8.3.1-23.el7_7 | Fixed 2020-08-31 | RHSA-2020:3581 |
| Red Hat Enterprise Linux 8 | git-0:2.18.2-2.el8_1 | Fixed 2020-04-21 | RHSA-2020:1513 |
| Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions | git-0:2.18.2-2.el8_0 | Fixed 2020-04-21 | RHSA-2020:1518 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git218-git-0:2.18.2-3.el7 | Fixed 2020-04-21 | RHSA-2020:1503 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-git218-git-0:2.18.2-3.el7 | Fixed 2020-04-21 | RHSA-2020:1503 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-git218-git-0:2.18.2-3.el7 | Fixed 2020-04-21 | RHSA-2020:1503 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-git218-git-0:2.18.2-3.el7 | Fixed 2020-04-21 | RHSA-2020:1503 |
| Red Hat Enterprise Linux 6 | git | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-5260.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13), CWE-20 (51).