Description
Arbitrary command execution is possible in Git before 2.20.2, 2.21.x before 2.21.1, 2.22.x before 2.22.2, 2.23.x before 2.23.1, and 2.24.x before 2.24.1 because a "git submodule update" operation can run commands found in the .gitmodules file of a malicious repository.
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 | — |
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 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.23 | git | 2.24.1-r0 | — |
| Alpine v3.22 | git | 2.24.1-r0 | — |
| Alpine v3.21 | git | 2.24.1-r0 | — |
| Alpine v3.20 | git | 2.24.1-r0 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | git | 2.24.1-r0 | — |
| Alpine v3.18 | git | 2.24.1-r0 | — |
| Alpine v3.17 | git | 2.24.1-r0 | — |
| Alpine v3.16 | git | 2.24.1-r0 | — |
| Alpine v3.15 | git | 2.24.1-r0 | — |
| Alpine v3.14 | git | 2.24.1-r0 | — |
| Alpine v3.13 | git | 2.24.1-r0 | — |
| Alpine v3.12 | git | 2.24.1-r0 | — |
| Alpine v3.11 | git | 2.24.1-r0 | — |
| Alpine v3.10 | git | 2.22.2-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 |
Advisories 9
- WID-SEC-2022-1613 git: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 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
- 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
- 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
References
- https://gitlab.com/gitlab-com/gl-security/disclosures/blob/master/003_git_submodule/advisory.md
- https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.24.1.txt
- https://public-inbox.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/
- DSA-4581 vendor-advisory
- [oss-security] 20191213 Multiple vulnerabilities fixed in Git mailing-list
- FEDORA-2019-c841bcc3b9 vendor-advisory
- FEDORA-2019-1cec196e20 vendor-advisory
- openSUSE-SU-2020:0123 vendor-advisory
- GLSA-202003-30 vendor-advisory
- openSUSE-SU-2020:0598 vendor-advisory