CVE-2020-11008
Malicious URLs can still cause Git to send a stored credential to the wrong server
Check your servers for CVE-2020-11008
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-11008 affects git, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. This bug is similar to CVE-2020-5260(GHSA-qm7j-c969-7j4q). The fix for that bug still left the door open for an exploit where _some_ credential is leaked (but the attacker cannot control which one). 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 are considered illegal as of the recently published Git versions can cause Git to send a "blank" pattern to helpers, missing hostname and protocol fields. Many helpers will interpret this as matching _any_ URL, and will return some unspecified stored password, leaking the password to an attacker's server. 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 root of the problem is in Git itself, which should not be feeding blank input to helpers. However, the ability to exploit the vulnerability in practice depends on which helpers are in use. Credential helpers which are known to trigger the vulnerability: - Git's "store" helper - Git's "cache" helper - the "osxkeychain" helper that ships in Git's "contrib" directory Credential helpers which are known to be safe even with vulnerable versions of Git: - Git Credential Manager for Windows Any helper not in this list should be assumed to trigger the vulnerability.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 4.80%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 92.1% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-20 Improper Input Validation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| git |
affected < 2.17.5 affected >= 2.18.0, < 2.18.4 affected >= 2.19.0, 2.19.5 affected >= 2.20.0, < 2.20.4 affected >= 2.21.0, < 2.21.3 affected >= 2.22.0, < 2.22.4 affected >= 2.23.0, < 2.23.3 affected >= 2.24.0, < 2.24.3 affected >= 2.25.0, < 2.25.4 affected >= 2.26.0, < 2.26.2
|
Is my server affected?
Find the installed version of git and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i git
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-11008 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-11008RHEL, Rocky, Alma, Fedora
rpm -q git
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-11008Alpine
apk list --installed | grep -i gitWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-11008
trivy image --scanners vuln IMAGE | grep CVE-2020-11008
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/git/git/security/advisories/GHSA-hjc9-x69f-jqj7 github.com
- GLSA-202004-13 security.gentoo.org · vendor advisory
- FEDORA-2020-f6b3b6fb18 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-b2a2c830cf lists.fedoraproject.org · vendor advisory
- USN-4334-1 usn.ubuntu.com · vendor advisory
- FEDORA-2020-4e093619bb lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2020:0598 lists.opensuse.org · vendor advisory
- https://support.apple.com/kb/HT211183 support.apple.com
Other references
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q github.com
- https://github.com/git/git/commit/c44088ecc4b0722636e0a305f9608d3047197282 github.com
- [debian-lts-announce] 20200424 [SECURITY] [DLA 2182-1] git security update lists.debian.org · mailing list
- 20200522 APPLE-SA-2020-05-20-1 Xcode 11.5 seclists.org · mailing list
Source: the record CVE-2020-11008 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse