git: arbitrary code execution via .gitmodules
Published Oct 6, 2018
9.8
CRITICALCVSS 3.0
EPSS 97.36%
Description
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.
Affected products
No data.
Configuration 1
Configuration 2
- 3.3
- 6.0
- 6.7
- 7.0
- 7.3
- 7.4
- 7.5
- 7.6
- 7.0
- 7.0
- 7.6
- 7.6
- 7.6
- 7.0
Configuration 3
- 14.04
- 16.04
- 18.04
Configuration 4
- 9.0
No data.
Red Hat Enterprise Linux 6
git-0:1.7.1-10.el6_10
Fixed · RHSA-2020:0316
Red Hat Enterprise Linux 7
git-0:1.8.3.1-20.el7
Fixed · RHSA-2018:3408
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-git29-git-0:2.9.3-7.el6
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-git29-git-0:2.9.3-7.el6
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-git29-git-0:2.9.3-8.el7
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-git29-git-0:2.9.3-8.el7
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-git29-git-0:2.9.3-6.el7
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-git29-git-0:2.9.3-6.el7
Fixed · RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-git29-git-0:2.9.3-8.el7
Fixed · RHSA-2018:3541
Red Hat Enterprise Linux 8
git
Not affected
Red Hat Fuse 7
camel
Affected
Red Hat JBoss Fuse 6
camel
Affected
Red Hat JBoss Fuse Integration Service 2
camel
Affected
Red Hat Mobile Application Platform 4
fh-scm
Not affected
Red Hat Software Collections
rh-git218-git
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | git-0:1.7.1-10.el6_10 | Fixed | RHSA-2020:0316 |
| Red Hat Enterprise Linux 7 | git-0:1.8.3.1-20.el7 | Fixed | RHSA-2018:3408 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-git29-git-0:2.9.3-7.el6 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-git29-git-0:2.9.3-7.el6 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git29-git-0:2.9.3-8.el7 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-git29-git-0:2.9.3-8.el7 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-git29-git-0:2.9.3-6.el7 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-git29-git-0:2.9.3-6.el7 | Fixed | RHSA-2018:3541 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-git29-git-0:2.9.3-8.el7 | Fixed | RHSA-2018:3541 |
| Red Hat Enterprise Linux 8 | git | Not affected | n/a |
| Red Hat Fuse 7 | camel | Affected | n/a |
| Red Hat JBoss Fuse 6 | camel | Affected | n/a |
| Red Hat JBoss Fuse Integration Service 2 | camel | Affected | n/a |
| Red Hat Mobile Application Platform 4 | fh-scm | 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
OpenShift Container Platform (OCP) source-to-image uses the git client packaged with the OCP container images. Since RHEL7 and its associated images are impacted, source-to-image is also impacted. The atomic-openshift package running on the masters controls the code that determines the source-to-image build image in use, therefore a cluster update is required to patch this issue. Full instructions will be provided in Security Errata provided for this issue. In OCP 3.6 and earlier, source-to-image executes in a privileged container on the node. Therefore the severity of this CVE is important for these versions. OCP 3.7 and later execute source-to-image git pulls in an unprivileged init container.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
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 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 (76 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 97.36% (0.97356) | 99.90th | v5 (v2026.06.15) |
| Sep 22, 2026 | 97.36% (0.97356) | 99.89th | v5 (v2026.06.15) |
| Sep 21, 2026 | 93.09% (0.93087) | 99.83th | v5 (v2026.06.15) |
| Sep 6, 2026 | 97.36% (0.97356) | 99.89th | v5 (v2026.06.15) |
| Sep 5, 2026 | 93.09% (0.93087) | 99.83th | v5 (v2026.06.15) |
| Aug 30, 2026 | 97.36% (0.97356) | 99.89th | v5 (v2026.06.15) |
| Aug 28, 2026 | 93.09% (0.93087) | 99.83th | v5 (v2026.06.15) |
| Aug 24, 2026 | 97.36% (0.97356) | 99.89th | v5 (v2026.06.15) |
| Aug 23, 2026 | 93.09% (0.93087) | 99.83th | v5 (v2026.06.15) |
| Jun 15, 2026 | 97.36% (0.97356) | 99.89th | v5 (v2026.06.15) |
| May 17, 2026 | 59.23% (0.59226) | 98.26th | v4 (v2025.03.14) |
| May 13, 2026 | 62.58% (0.62581) | 98.39th | v4 (v2025.03.14) |
| Mar 4, 2026 | 66.23% (0.66226) | 98.49th | v4 (v2025.03.14) |
| Mar 1, 2026 | 58.42% (0.58420) | 98.17th | v4 (v2025.03.14) |
| Feb 4, 2026 | 66.23% (0.66226) | 98.47th | v4 (v2025.03.14) |
| Feb 1, 2026 | 58.42% (0.58420) | 98.15th | v4 (v2025.03.14) |
| Jan 28, 2026 | 66.23% (0.66226) | 98.47th | v4 (v2025.03.14) |
| Jan 4, 2026 | 62.49% (0.62494) | 98.29th | v4 (v2025.03.14) |
| Jan 3, 2026 | 54.18% (0.54180) | 97.93th | v4 (v2025.03.14) |
| Jan 1, 2026 | 63.68% (0.63680) | 98.36th | v4 (v2025.03.14) |
| Dec 28, 2025 | 70.70% (0.70700) | 98.64th | v4 (v2025.03.14) |
| Dec 27, 2025 | 65.76% (0.65760) | 98.45th | v4 (v2025.03.14) |
| Dec 4, 2025 | 70.70% (0.70700) | 98.63th | v4 (v2025.03.14) |
| Dec 1, 2025 | 63.68% (0.63680) | 98.33th | v4 (v2025.03.14) |
| Nov 21, 2025 | 70.70% (0.70700) | 98.62th | v4 (v2025.03.14) |
| Nov 18, 2025 | 49.14% (0.49144) | 97.64th | v4 (v2025.03.14) |
| Nov 4, 2025 | 70.70% (0.70700) | 98.62th | v4 (v2025.03.14) |
| Nov 1, 2025 | 63.68% (0.63680) | 98.34th | v4 (v2025.03.14) |
| Oct 28, 2025 | 70.70% (0.70700) | 98.62th | v4 (v2025.03.14) |
| Oct 27, 2025 | 65.76% (0.65760) | 98.44th | v4 (v2025.03.14) |
| Oct 4, 2025 | 70.70% (0.70700) | 98.64th | v4 (v2025.03.14) |
| Oct 1, 2025 | 63.68% (0.63680) | 98.37th | v4 (v2025.03.14) |
| Sep 4, 2025 | 65.76% (0.65760) | 98.45th | v4 (v2025.03.14) |
| Sep 1, 2025 | 54.30% (0.54303) | 97.95th | v4 (v2025.03.14) |
| Aug 30, 2025 | 62.60% (0.62604) | 98.31th | v4 (v2025.03.14) |
| Aug 4, 2025 | 72.68% (0.72679) | 98.71th | v4 (v2025.03.14) |
| Aug 1, 2025 | 68.68% (0.68677) | 98.56th | v4 (v2025.03.14) |
| Jul 22, 2025 | 72.68% (0.72679) | 98.69th | v4 (v2025.03.14) |
| Jul 4, 2025 | 70.74% (0.70737) | 98.61th | v4 (v2025.03.14) |
| Jul 1, 2025 | 66.48% (0.66479) | 98.44th | v4 (v2025.03.14) |
| Jun 7, 2025 | 70.62% (0.70618) | 98.58th | v4 (v2025.03.14) |
| Jun 6, 2025 | 66.34% (0.66345) | 98.40th | v4 (v2025.03.14) |
| Jun 1, 2025 | 63.81% (0.63808) | 98.30th | v4 (v2025.03.14) |
| May 4, 2025 | 68.35% (0.68353) | 98.48th | v4 (v2025.03.14) |
| May 1, 2025 | 63.81% (0.63808) | 98.30th | v4 (v2025.03.14) |
| Apr 13, 2025 | 68.35% (0.68353) | 98.50th | v4 (v2025.03.14) |
| Apr 12, 2025 | 63.81% (0.63808) | 98.28th | v4 (v2025.03.14) |
| Mar 30, 2025 | 68.35% (0.68353) | 98.49th | v4 (v2025.03.14) |
| Mar 29, 2025 | 80.66% (0.80661) | 98.89th | v4 (v2025.03.14) |
| Mar 28, 2025 | 68.35% (0.68353) | 98.49th | v4 (v2025.03.14) |
| Mar 27, 2025 | 80.66% (0.80661) | 99.05th | v4 (v2025.03.14) |
| Mar 25, 2025 | 67.79% (0.67793) | 98.50th | v4 (v2025.03.14) |
| Mar 24, 2025 | 63.19% (0.63185) | 98.26th | v4 (v2025.03.14) |
| Mar 20, 2025 | 67.79% (0.67793) | 98.51th | v4 (v2025.03.14) |
| Mar 19, 2025 | 80.66% (0.80661) | 99.08th | v4 (v2025.03.14) |
| Mar 17, 2025 | 67.79% (0.67793) | 98.46th | v4 (v2025.03.14) |
| Jan 9, 2025 | 68.52% (0.68518) | 98.17th | v3 (v2023.03.01) |
| Dec 17, 2024 | 65.97% (0.65975) | 98.07th | v3 (v2023.03.01) |
| Dec 12, 2024 | 26.33% (0.26330) | 96.92th | v3 (v2023.03.01) |
| Oct 21, 2024 | 27.27% (0.27268) | 96.88th | v3 (v2023.03.01) |
| Sep 15, 2024 | 31.31% (0.31307) | 97.06th | v3 (v2023.03.01) |
| Aug 15, 2024 | 27.60% (0.27604) | 96.88th | v3 (v2023.03.01) |
| Jul 21, 2024 | 21.55% (0.21547) | 96.50th | v3 (v2023.03.01) |
| May 25, 2024 | 17.05% (0.17048) | 96.07th | v3 (v2023.03.01) |
| Feb 27, 2024 | 16.06% (0.16059) | 95.79th | v3 (v2023.03.01) |
| Jan 15, 2024 | 14.27% (0.14273) | 95.19th | v3 (v2023.03.01) |
| Dec 11, 2023 | 16.52% (0.16521) | 95.49th | v3 (v2023.03.01) |
| Sep 30, 2023 | 12.38% (0.12378) | 94.74th | v3 (v2023.03.01) |
| Aug 28, 2023 | 9.14% (0.09137) | 93.87th | v3 (v2023.03.01) |
| Jul 8, 2023 | 9.31% (0.09306) | 93.86th | v3 (v2023.03.01) |
| Mar 7, 2023 | 8.20% (0.08195) | 93.29th | v3 (v2023.03.01) |
| Mar 6, 2023 | 89.44% (0.89435) | 99.82th | v2 (v2022.01.01) |
| Feb 4, 2022 | 89.44% (0.89435) | 99.79th | v2 (v2022.01.01) |
| Feb 3, 2022 | 74.78% (0.74782) | 99.74th | v1 |
| Sep 1, 2021 | 74.78% (0.74782) | 99.87th | v1 |
| Apr 14, 2021 | 74.78% (0.74782) | 0.00th | v1 |
References (22)
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html vendor-advisoryx_refsource_SUSE
- http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html x_refsource_MISCThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/105523 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/107511 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1041811 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:3408 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3505 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3541 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2020:0316 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-17456 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1636619 Issue Tracking
- https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404 x_refsource_MISCPatchThird Party Advisory
- https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46 x_refsource_MISCPatchThird Party Advisory
- https://marc.info/?l=git&m=153875888916397&w=2 x_refsource_MISCThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-17456
- https://seclists.org/bugtraq/2019/Mar/30 mailing-listx_refsource_BUGTRAQMailing ListThird Party Advisory
- https://usn.ubuntu.com/3791-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-17456
- https://www.debian.org/security/2018/dsa-4311 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.exploit-db.com/exploits/45548/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
- https://www.exploit-db.com/exploits/45631/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
- https://www.openwall.com/lists/oss-security/2018/10/06/3 x_refsource_MISCMailing ListThird Party Advisory
Change history (0)
No recorded changes yet.