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.
CVE-2018-17456
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-13. NVD baseline CVSS 9.8; sources differ by 0.0.
- High exploitation likelihood — EPSS 97%
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 99.9%
- KEV
- Not listed
Published
October 6, 2018
Last Modified
November 21, 2024
Advisory Details (8)
Auto-updated Jun 22, 2026commit 1a7fd1fb2998 (git/git)
Fix landed in git/git commit 1a7fd1fb2998 — awaiting tagged release
https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404Affected: Red Hat Enterprise Linux 6.
https://access.redhat.com/errata/RHSA-2020:0316Affected: Red Hat Enterprise Linux 7.
https://access.redhat.com/errata/RHSA-2018:3408Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | gitweb (1:1.9.1-1ubuntu0.9) @ trusty | 2026-05-28 | ubuntu |
| redhat | git-0:1.7.1-10.el6_10 | 2020-02-03 | redhat |
| redhat | rh-git29-git-0:2.9.3-8.el7 | 2018-11-13 | redhat |
| redhat | git-0:1.8.3.1-20.el7 | 2018-10-30 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(4)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 3× in last 7d / 8× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-21 04:34 UTCOSV refresh
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-03 23:56 UTCOSV refresh
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-15 12:13 UTCOSV refresh
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
Show 15 moreShow fewer
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 02:25 UTCEG score recompute
- 2026-05-28 02:25 UTCVendor advisory
- 2026-05-28 02:25 UTCGHSA enrichment
Publicly available exploits
(4 references)Working exploit code is in the public domain (1 Metasploit module) (1 GitHub PoC) (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCAnonymKing/CVE-2018-17456First seen Jun 21, 2019
CVE-2018-17456漏洞复现(PoC+Exp)
Open source ↗ - Exploit-DBEDB-45631First seen Oct 16, 2018
Git Submodule - Arbitrary Code Execution
Open source ↗ - Exploit-DBEDB-45548First seen Oct 5, 2018
Git Submodule - Arbitrary Code Execution (PoC)
Open source ↗ - Metasploitexploit/multi/http/git_submodule_url_exec✓ verifiedFirst seen Oct 5, 2018
Malicious Git HTTP Server For CVE-2018-17456
Open source ↗
Frequently asked(5)
What is CVE-2018-17456?
When was CVE-2018-17456 disclosed?
Is CVE-2018-17456 actively exploited?
What is the CVSS score of CVE-2018-17456?
How do I remediate CVE-2018-17456?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2018-17456
Is Your Infrastructure Affected by CVE-2018-17456?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.