git: Remote code execution in recursive clones with nested submodules
Published Dec 18, 2019
8.8
HIGHCVSS 3.1
EPSS 4.43%
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
-
- Version Before v2.14.6StatusaffectedConstraints-
- Version Before v2.15.4StatusaffectedConstraints-
- Version Before v2.16.6StatusaffectedConstraints-
- Version Before v2.17.3StatusaffectedConstraints-
- Version Before v2.18.2StatusaffectedConstraints-
- Version Before v2.19.3StatusaffectedConstraints-
- Version Before v2.20.2StatusaffectedConstraints-
- Version Before v2.21.1StatusaffectedConstraints-
- Version Before v2.22.2StatusaffectedConstraints-
- Version Before v2.23.1StatusaffectedConstraints-
- Version Before v2.24.1StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Microsoft Corporation | Git | n/a |
|
- ≥ 2.14.0 · < 2.14.6
- ≥ 2.15.0 · < 2.15.4
- ≥ 2.16.0 · < 2.16.6
- ≥ 2.17.0 · < 2.17.3
- ≥ 2.18.0 · < 2.18.2
- ≥ 2.19.0 · < 2.19.3
- ≥ 2.20.0 · < 2.20.2
- ≥ 2.22.0 · < 2.22.2
- 2.21.0
- 2.23.0
- 2.24.0
-
- Version 0StatusaffectedConstraints<2,24.1
- Version 0StatusaffectedConstraints<2.14.6
- Version 0StatusaffectedConstraints<2.15.4
- Version 0StatusaffectedConstraints<2.16.6
- Version 0StatusaffectedConstraints<2.17.3
- Version 0StatusaffectedConstraints<2.18.2
- Version 0StatusaffectedConstraints<2.19.3
- Version 0StatusaffectedConstraints<2.20.2
- Version 0StatusaffectedConstraints<2.21.1
- Version 0StatusaffectedConstraints<2.22.2
- Version 0StatusaffectedConstraints<2.23.1
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
Red Hat Enterprise Linux 7
git-0:1.8.3.1-21.el7_7
Fixed · RHSA-2020:0124
Red Hat Enterprise Linux 8
git-0:2.18.2-1.el8_1
Fixed · RHSA-2019:4356
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions
git-0:2.18.2-1.el8_0
Fixed · RHSA-2020:0228
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-git218-git-0:2.18.2-1.el7
Fixed · RHSA-2020:0002
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-git218-git-0:2.18.2-1.el7
Fixed · RHSA-2020:0002
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-git218-git-0:2.18.2-1.el7
Fixed · RHSA-2020:0002
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS
rh-git218-git-0:2.18.2-1.el7
Fixed · RHSA-2020:0002
Red Hat Enterprise Linux 6
git
Not affected
Red Hat Fuse 7
camel-git
Not affected
Red Hat JBoss Fuse 6
camel-git
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | git-0:1.8.3.1-21.el7_7 | Fixed | RHSA-2020:0124 |
| Red Hat Enterprise Linux 8 | git-0:2.18.2-1.el8_1 | Fixed | RHSA-2019:4356 |
| Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions | git-0:2.18.2-1.el8_0 | Fixed | RHSA-2020:0228 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git218-git-0:2.18.2-1.el7 | Fixed | RHSA-2020:0002 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-git218-git-0:2.18.2-1.el7 | Fixed | RHSA-2020:0002 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-git218-git-0:2.18.2-1.el7 | Fixed | RHSA-2020:0002 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-git218-git-0:2.18.2-1.el7 | Fixed | RHSA-2020:0002 |
| Red Hat Enterprise Linux 6 | 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 |
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 as they did not use submodules names to construct git metadata paths.
Red Hat mitigation
Avoid running `git clone --recurse-submodules` and `git submodule update` with untrusted repositories.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Jul 19, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 4.43% (0.04426) | 91.07th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.43% (0.04426) | 90.09th | v5 (v2026.06.15) |
| Mar 30, 2025 | 2.79% (0.02790) | 84.81th | v4 (v2025.03.14) |
| Mar 29, 2025 | 5.87% (0.05874) | 83.87th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.79% (0.02790) | 85.14th | v4 (v2025.03.14) |
| Dec 17, 2024 | 10.92% (0.10921) | 95.09th | v3 (v2023.03.01) |
| Dec 11, 2024 | 11.97% (0.11972) | 95.58th | v3 (v2023.03.01) |
| Jun 27, 2024 | 8.69% (0.08694) | 94.56th | v3 (v2023.03.01) |
| Nov 24, 2023 | 3.60% (0.03603) | 90.66th | v3 (v2023.03.01) |
| Nov 8, 2023 | 3.17% (0.03173) | 90.05th | v3 (v2023.03.01) |
| Oct 22, 2023 | 2.86% (0.02862) | 89.57th | v3 (v2023.03.01) |
| Oct 7, 2023 | 2.31% (0.02314) | 88.43th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.21% (0.02213) | 87.69th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.67% (0.07670) | 92.91th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.67% (0.07670) | 92.25th | v2 (v2022.01.01) |
| Feb 4, 2022 | 61.89% (0.61890) | 98.69th | v2 (v2022.01.01) |
| Feb 3, 2022 | 21.50% (0.21497) | 94.47th | v1 |
| Jan 6, 2022 | 21.50% (0.21497) | 94.40th | v1 |
| Sep 1, 2021 | 5.75% (0.05752) | 89.03th | v1 |
| Apr 14, 2021 | 5.75% (0.05752) | 0.00th | v1 |
References (19)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00056.html vendor-advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html vendor-advisory
- https://access.redhat.com/errata/RHSA-2019:4356 vendor-advisoryThird Party Advisory
- https://access.redhat.com/errata/RHSA-2020:0002 vendor-advisory
- https://access.redhat.com/errata/RHSA-2020:0124 vendor-advisory
- https://access.redhat.com/errata/RHSA-2020:0228 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2019-1387 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1781127 Issue Tracking
- https://github.com/git/git/security/advisories/GHSA-4wfr-gwrh-8mj2
- https://lists.debian.org/debian-lts-announce/2020/01/msg00019.html mailing-list
- https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6UGTEOXWIYSM5KDZL74QD2GK6YQNQCP/ vendor-advisory
- https://lore.kernel.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/T/#u
- https://nvd.nist.gov/vuln/detail/CVE-2019-1387
- https://public-inbox.org/git/xmqqr21cqcn9.fsf%40gitster-ct.c.googlers.com/
- https://security.gentoo.org/glsa/202003-30 vendor-advisory
- https://security.gentoo.org/glsa/202003-42 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2019-1387
Change history (0)
No recorded changes yet.