Skip to content
OpenAdvisories
Medium · 4.0 CVE-2020-11008 EUVD-2020-3400

Malicious URLs can still cause Git to send a stored credential to the wrong server

Published Apr 21, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
git git < 2.17.5, >= 2.18.0, < 2.18.4, >= 2.19.0, 2.19.5, >= 2.20.0, < 2.20.4, >= 2.21.0, < 2.21.3, >= 2.22.0, < 2.22.4, >= 2.23.0, < 2.23.3, >= 2.24.0, < 2.24.3, >= 2.25.0, < 2.25.4, >= 2.26.0, < 2.26.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 git 1:2.26.2-1 —
Debian 13 git 1:2.26.2-1 —
Debian 12 git 1:2.26.2-1 —
Debian 10 git 1:2.20.1-2+deb10u3 DSA-4659-1
Debian 9 git 1:2.11.0-3+deb9u7 DSA-4659-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 git 1:2.1.4-2.1+deb8u10 DLA-2182-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS git 1:2.17.1-1ubuntu0.7 USN-4334-1
Ubuntu 16.04 LTS git 1:2.7.4-0ubuntu1.9 USN-4334-1
ReleasePackageFixed inAdvisory
RHEL 8 git +13 2.18.4-2.el8_2 RHSA-2020:1980
RHEL 7 git +17 1.8.3.1-23.el7_8 RHSA-2020:2337
RHEL 3 rh-git218-git +15 2.18.4-1.el7 RHSA-2020:1975
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.1 EUS git +13 2.18.4-1.el8_1 RHSA-2020:1979
RHEL 8.0 E4S git +13 2.18.4-1.el8_0 RHSA-2020:1978
RHEL 7.7 EUS git +17 1.8.3.1-23.el7_7 RHSA-2020:3581
ReleasePackageFixed inAdvisory
SLES 15 SP1 git 2.26.1-3.25.2 SUSE-SU-2020:1121-1
SLES 12 SP5 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES 12 SP4 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES 12 SP3 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES 12 SP2 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP1 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES for SAP 12 SP5 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES for SAP 12 SP4 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES for SAP 12 SP3 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES for SAP 12 SP2 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SLES for SAP 12 SP1 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SUSE OpenStack Cloud Crowbar 8 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SUSE OpenStack Cloud 8 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SUSE OpenStack Cloud 7 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SUSE HPE Helion OpenStack 8 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
SUSE Enterprise Storage 5 git 2.26.2-27.36.1 SUSE-SU-2020:1295-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git 2.33.0-1.3 openSUSE-SU-2024:10786-1
openSUSE Leap 15.1 git 2.26.1-lp151.4.9.1 openSUSE-SU-2020:0598-1
ReleasePackageFixed inAdvisory
Alpine v3.24 git 2.26.2-r0 —
Alpine v3.23 git 2.26.2-r0 —
Alpine v3.22 git 2.26.2-r0 —
Alpine v3.21 git 2.26.2-r0 —
Alpine v3.20 git 2.26.2-r0 —
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 git 2.26.2-r0 —
Alpine v3.18 git 2.26.2-r0 —
Alpine v3.17 git 2.26.2-r0 —
Alpine v3.16 git 2.26.2-r0 —
Alpine v3.15 git 2.26.2-r0 —
Alpine v3.14 git 2.26.2-r0 —
Alpine v3.13 git 2.26.2-r0 —
Alpine v3.12 git 2.26.2-r0 —
Alpine v3.11 git 2.24.3-r0 —
Alpine v3.10 git 2.22.4-r0 —
Alpine v3.9 git 2.20.4-r0 —
Alpine v3.8 git 2.18.4-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 git +15 2.23.3-1.amzn2.0.1 ALAS2-2020-1416

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 git +13 2.18.4-2.el8_2 ELSA-2020-1980
Oracle Linux 7 git +17 1.8.3.1-23.el7_8 ELSA-2020-2337

Advisories 17

References