Description
An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. Recursive clones are currently affected by a vulnerability that is caused by too-lax validation of submodule names, allowing very targeted attacks via remote code execution in recursive clones.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Microsoft | Git | Before v2.24.1, Before v2.23.1, Before v2.22.2, Before v2.21.1, Before v2.20.2, Before v2.19.3, Before v2.18.2, Before v2.17.3, Before v2.16.6, Before v2.15.4, Before v2.14.6 | — |
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.24.0-2 | — |
| Debian 13 | git | 1:2.24.0-2 | — |
| Debian 12 | git | 1:2.24.0-2 | — |
| Debian 11 | git | 1:2.30.2-1+deb11u3 | DLA-3867-1 |
| Debian 10 | git | 1:2.20.1-2+deb10u1 | DSA-4581-1, DLA-3844-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | git | 1:2.11.0-3+deb9u5 | DSA-4581-1 |
| Debian 8 | git | 1:2.1.4-2.1+deb8u8 | DLA-2059-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | git | 1:2.17.1-1ubuntu0.5 | USN-4220-1 |
| Ubuntu 16.04 LTS | git | 1:2.7.4-0ubuntu1.7 | USN-4220-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | git +13 | 2.18.2-1.el8_1 | RHSA-2019:4356 |
| RHEL 7 | git +17 | 1.8.3.1-21.el7_7 | RHSA-2020:0124 |
| RHEL 3 | rh-git218-git +15 | 2.18.2-1.el7 | RHSA-2020:0002 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.0 E4S | git +13 | 2.18.2-1.el8_0 | RHSA-2020:0228 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | git | 2.16.4-3.17.2 | SUSE-SU-2020:1121-1, SUSE-SU-2020:0045-1 |
| SLES 15 SP1 | perl-Authen-SASL | 2.16-1.3.1 | SUSE-SU-2020:0045-1 |
| SLES 15 SP1 | perl-Net-SMTP-SSL | 1.04-1.3.1 | SUSE-SU-2020:0045-1 |
| SLES 15 | git | 2.16.4-3.17.2 | SUSE-SU-2020:0045-1 |
| SLES 15 | perl-Authen-SASL | 2.16-1.3.1 | SUSE-SU-2020:0045-1 |
| SLES 15 | perl-Net-SMTP-SSL | 1.04-1.3.1 | SUSE-SU-2020:0045-1 |
| SLES 12 SP5 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES 12 SP4 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES 12 SP3 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES 12 SP1 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES for SAP 12 SP5 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES for SAP 12 SP4 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES for SAP 12 SP3 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SLES for SAP 12 SP2 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SUSE OpenStack Cloud 8 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SUSE OpenStack Cloud 7 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SUSE HPE Helion OpenStack 8 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
| SUSE Enterprise Storage 5 | git | 2.12.3-27.22.1 | SUSE-SU-2019:3311-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | git | 2.33.0-1.3 | openSUSE-SU-2024:10786-1 |
| openSUSE Tumbleweed | libgit2 | 1.1.1-1.2 | openSUSE-SU-2024:10943-1 |
| openSUSE Leap 15.1 | git | 2.16.4-lp151.4.3.1 | openSUSE-SU-2020:0598-1, openSUSE-SU-2020:0123-1 |
| openSUSE Leap 15.1 | perl-Authen-SASL | 2.16-lp151.3.3.1 | openSUSE-SU-2020:0123-1 |
| openSUSE Leap 15.1 | perl-Net-SMTP-SSL | 1.04-lp151.3.3.1 | openSUSE-SU-2020:0123-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | git | 2.24.1-r0 | — |
| Alpine v3.24 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.23 | git | 2.24.1-r0 | — |
| Alpine v3.23 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.22 | git | 2.24.1-r0 | — |
| Alpine v3.22 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.21 | git | 2.24.1-r0 | — |
| Alpine v3.21 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.20 | git | 2.24.1-r0 | — |
| Alpine v3.20 | libgit2 | 0.28.4-r0 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | git | 2.24.1-r0 | — |
| Alpine v3.19 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.18 | git | 2.24.1-r0 | — |
| Alpine v3.18 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.17 | git | 2.24.1-r0 | — |
| Alpine v3.17 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.16 | git | 2.24.1-r0 | — |
| Alpine v3.16 | libgit2 +1 | 0.28.4-r0 | — |
| Alpine v3.15 | git | 2.24.1-r0 | — |
| Alpine v3.15 | libgit2 +1 | 0.28.4-r0 | — |
| Alpine v3.14 | git | 2.24.1-r0 | — |
| Alpine v3.14 | libgit2 +1 | 0.28.4-r0 | — |
| Alpine v3.13 | git | 2.24.1-r0 | — |
| Alpine v3.13 | libgit2 +1 | 0.28.4-r0 | — |
| Alpine v3.12 | git | 2.24.1-r0 | — |
| Alpine v3.12 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.11 | git | 2.24.1-r0 | — |
| Alpine v3.11 | libgit2 | 0.28.4-r0 | — |
| Alpine v3.10 | git | 2.22.2-r0 | — |
| Alpine v3.9 | git | 2.20.2-r0 | — |
| Alpine v3.8 | git | 2.18.2-r0 | — |
| Alpine v3.7 | git | 2.15.4-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | git +15 | 2.23.1-0.amzn2.0.2 | ALAS2-2025-2818, ALAS2-2019-1371 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | git +13 | 2.18.2-1.el8_1 | ELSA-2019-4356 |
| Oracle Linux 7 | git +17 | 1.8.3.1-21.el7_7 | ELSA-2020-0124 |
Advisories 22
- WID-SEC-2022-1613 git: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- RHSA-2020:0228 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:0124 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:0002 Red Hat Security Advisory: rh-git218-git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2019:4356 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-4581-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2059-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3844-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3867-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4220-1 git vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2020:0598-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0123-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0045-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
- openSUSE-SU-2024:10943-1 libgit2-1_1-1.1.1-1.2 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
- SUSE-SU-2019:3311-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- VDE-2023-016 Phoenix Contact: PLCnext Engineer Vulnerabilities in LibGit2Sharp/LibGit2 CERT@VDE · May 22, 2025
- ALAS2-2025-2818 Important: git security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 16, 2025
- ALAS2-2019-1371 Important: git security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 23, 2020
- ELSA-2020-0124 Important: git security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 16, 2020
- ELSA-2019-4356 Important: git security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Dec 19, 2019
References
- https://lore.kernel.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/T/#u
- RHSA-2019:4356 vendor-advisory
- RHSA-2020:0002 vendor-advisory
- FEDORA-2019-1cec196e20 vendor-advisory
- RHSA-2020:0124 vendor-advisory
- [debian-lts-announce] 20200123 [SECURITY] [DLA 2059-1] git security update mailing-list
- https://public-inbox.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/
- openSUSE-SU-2020:0123 vendor-advisory
- RHSA-2020:0228 vendor-advisory
- GLSA-202003-30 vendor-advisory
- GLSA-202003-42 vendor-advisory
- openSUSE-SU-2020:0598 vendor-advisory
- [debian-lts-announce] 20240626 [SECURITY] [DLA 3844-1] git security update mailing-list