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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | git | 1:2.1.4-2.1+deb8u10 | DLA-2182-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | git +15 | 2.23.3-1.amzn2.0.1 | ALAS2-2020-1416 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- WID-SEC-2026-4026 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- RHSA-2020:3581 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:2337 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:1980 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:1979 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:1975 Red Hat Security Advisory: rh-git218-git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:1978 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-4659-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2182-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4334-1 git vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2020:0598-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1295-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10786-1 git-2.33.0-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1121-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2020-2337 Important: git security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · May 29, 2020
- ELSA-2020-1980 Important: git security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 7, 2020
- ALAS2-2020-1416 Important: git security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 6, 2020
References
- https://github.com/git/git/security/advisories/GHSA-hjc9-x69f-jqj7
- https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
- https://github.com/git/git/commit/c44088ecc4b0722636e0a305f9608d3047197282
- GLSA-202004-13 vendor-advisory
- [debian-lts-announce] 20200424 [SECURITY] [DLA 2182-1] git security update mailing-list
- FEDORA-2020-f6b3b6fb18 vendor-advisory
- FEDORA-2020-b2a2c830cf vendor-advisory
- USN-4334-1 vendor-advisory
- FEDORA-2020-4e093619bb vendor-advisory
- openSUSE-SU-2020:0598 vendor-advisory
- https://support.apple.com/kb/HT211183
- 20200522 APPLE-SA-2020-05-20-1 Xcode 11.5 mailing-list