git: Recursive clone followed by a submodule update could execute code contained within repository without the user explicitly consent
Published Dec 10, 2019
7.8
HIGHCVSS 3.1
EPSS 3.71%
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
No data.
Configuration 1
Configuration 2
- 9.0
- 10.0
Configuration 3
- 30
- 31
No data.
Red Hat Enterprise Linux 6
git
Not affected
Red Hat Enterprise Linux 7
git
Not affected
Red Hat Enterprise Linux 8
git
Not affected
Red Hat Fuse 7
camel-git
Not affected
Red Hat JBoss Fuse 6
camel-git
Not affected
Red Hat OpenShift Container Platform 3.11
jenkins-2-plugins
Not affected
Red Hat OpenShift Container Platform 4
jenkins-2-plugins
Not affected
Red Hat Software Collections
rh-git218-git
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | git | Not affected | n/a |
| Red Hat Enterprise Linux 7 | git | Not affected | n/a |
| Red Hat Enterprise Linux 8 | git | Not affected | n/a |
| Red Hat Fuse 7 | camel-git | Not affected | n/a |
| Red Hat JBoss Fuse 6 | camel-git | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.11 | jenkins-2-plugins | Not affected | n/a |
| Red Hat OpenShift Container Platform 4 | jenkins-2-plugins | Not affected | n/a |
| Red Hat Software Collections | rh-git218-git | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of git as shipped with Red Hat Enterprise Linux 6, and 7 as they did not support custom commands as a valid update setting for submodules. This issue did not affect the versions of git as shipped with Red Hat Enterprise Linux 8 as they did no re-read the update setting from the .gitmodules file after the initialization of the submodules.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 3.71% (0.03707) | 89.41th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.66% (0.03660) | 88.15th | v5 (v2026.06.15) |
| Nov 18, 2025 | 1.01% (0.01006) | 75.12th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.29% (0.02288) | 83.24th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.66% (0.04664) | 81.81th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.29% (0.02288) | 83.54th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.25% (0.00248) | 65.30th | v3 (v2023.03.01) |
| Nov 16, 2023 | 0.18% (0.00175) | 54.56th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.15% (0.00152) | 49.55th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.38% (0.02378) | 81.49th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.38% (0.02378) | 79.73th | v2 (v2022.01.01) |
| Feb 4, 2022 | 6.19% (0.06188) | 77.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 15.53% (0.15532) | 90.08th | v1 |
| Jan 6, 2022 | 15.53% (0.15532) | 89.96th | v1 |
| Jan 5, 2022 | 3.94% (0.03937) | 83.58th | v5 (v2026.06.15) |
| Apr 14, 2021 | 3.94% (0.03937) | 0.00th | v1 |
References (15)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00056.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2019/12/13/1 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-19604 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1781971 Issue Tracking
- https://github.com/git/git/security/advisories/GHSA-cj5c-9839-g2ch
- https://gitlab.com/gitlab-com/gl-security/disclosures/blob/master/003_git_submodule/advisory.md x_refsource_MISCExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HCYSSCA5ZTEP46SB4XRPSQGFV2L3NKMZ/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6UGTEOXWIYSM5KDZL74QD2GK6YQNQCP/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2019-19604
- https://public-inbox.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/ x_refsource_CONFIRM
- https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.24.1.txt x_refsource_CONFIRMThird Party Advisory
- https://security.gentoo.org/glsa/202003-30 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-19604
- https://www.debian.org/security/2019/dsa-4581 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.