Remote code execution in Git recursive submodule cloning
CVE-2018-17456 is an argument-injection vulnerability in Git's recursive cloning of superprojects. A malicious repository can supply a submodule URL beginning with a hyphen, causing unsafe processing during submodule cloning and enabling arbitrary code execution. The vulnerability affects multiple Git release branches from 2.14 through 2.19, including applications that embed vulnerable Git versions.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Cloning a malicious repository recursively can execute attacker-controlled code on the system performing the clone. Applications that embed an affected Git version are also exposed when they perform the vulnerable operation.
If you can’t patch tonight, do this now.
Avoid cloning submodules from untrusted repositories until Git and any applications embedding Git have been updated.
Patch, then assume compromise.
Update Git to a patched release; Git 2.19.1 is explicitly identified as containing a fix. Update GitHub Desktop, Atom, and other applications that embed Git. For CIQ CentOS Bridge 7.9, install the affected package updates associated with advisory ciqsa-2026_1591. Earlier branch-specific version boundaries are inconsistent in the available information, so confirm the applicable fixed package with the vendor.
1 exploit validated by Mallory's analysis. Hidden: 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.