CVE-2018-17456: Git Submodule URL Argument Injection Leading to Remote Code Execution
- Vendors
- Red HatDebian ProjectGit-ScmCanonical
CVE-2018-17456 is an argument-injection vulnerability in Git's handling of submodule URLs during recursive cloning. A malicious superproject can specify a submodule URL beginning with a hyphen, causing Git to interpret attacker-controlled input as command-line options and potentially execute arbitrary code on the cloning system. Affected versions are 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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution with the privileges of the account running Git. This can compromise the confidentiality and integrity of accessible repositories, credentials, and other local data, and can disrupt processes or services accessible to that account. Automated build systems and applications embedding vulnerable Git versions may also be affected when recursively cloning attacker-controlled repositories.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid recursively cloning untrusted repositories and do not initialize or fetch their submodules. Apply the same restriction to automated build and development workflows that process externally supplied repositories.
Remediation
Patch, then assume compromise.
Upgrade Git to a supported release containing the fix. Historical fixed releases are 2.14.5, 2.15.3, 2.16.5, 2.17.2, 2.18.1, and 2.19.1. Update applications that bundle Git, including GitHub Desktop and Atom, rather than assuming an update to the system Git also updates embedded copies. For CIQ CentOS Bridge 7.9 installations, apply the affected package updates specified in advisory ciqsa-2026_1591.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 2 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2018-17456 exploited in the wild?
- As of Nov 18, 2026, Mallory has no reports of CVE-2018-17456 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2018-17456?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2018-17456, the earliest disclosed Oct 5, 2018.
- Is there a patch for CVE-2018-17456?
- Upgrade Git to a supported release containing the fix. Historical fixed releases are 2.14.5, 2.15.3, 2.16.5, 2.17.2, 2.18.1, and 2.19.1.
- What products are affected by CVE-2018-17456?
- Git-Scm Git, Red Hat Ansible Tower, Debian Project Debian Linux, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Server, and 6 more.
- How severe is CVE-2018-17456?
- CVE-2018-17456 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 97.4% (100th percentile) as of Nov 18, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.