What’s Vulnerable › Vulnerabilities
CVE-2019-19604
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-12-11 · updated 2026-06-17
- Weakness: CWE-78
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.
Affected products
- Debian Linux: 9.0, 10.0
- Fedoraproject Fedora: 30, 31
- git: before 2.20.0; from 2.21.0 before 2.21.1; from 2.22.0 before 2.22.2; from 2.23.0 before 2.23.1; from 2.24.0 before 2.24.1 — fixed in 2.20.0, 2.21.1, 2.22.2, 2.23.1, 2.24.1
- openSUSE Leap: 15.1
How to fix
Upgrade to a fixed version: git 2.20.0, 2.21.1, 2.22.2, 2.23.1. Check the vendor advisory for mitigations.
References
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00056.html
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- http://www.openwall.com/lists/oss-security/2019/12/13/1
- https://gitlab.com/gitlab-com/gl-security/disclosures/blob/master/003_git_submodule/advisory.md
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HCYSSCA5ZTEP46SB4XRPSQGFV2L3NKMZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6UGTEOXWIYSM5KDZL74QD2GK6YQNQCP/
- https://public-inbox.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/
- https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.24.1.txt
- https://security.gentoo.org/glsa/202003-30
- https://www.debian.org/security/2019/dsa-4581
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00056.html
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
Get alerted when CVE-2019-19604 or the next vulnerability affects your stack