CVE-2018-17456: Critical severity git-scm Git vulnerability
A flaw was found in git which allows an attacker to execute arbitrary code by crafting a malicious .gitmodules file in a project cloned with --recurse-submodules.
References: https://bugzilla.novell.com/showbug.cgi?id=1110949 https://groups.google.com/forum/#!topic/git-packagers/fNLXf6LQC08
Other sources
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.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2018-17456?
CVE-2018-17456 is a vulnerability in Git that 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.
What is the severity of CVE-2018-17456?
The severity of CVE-2018-17456 is critical (9.8).
Which software versions are affected by CVE-2018-17456?
Git versions 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 are affected by CVE-2018-17456.
How can I fix CVE-2018-17456?
To fix CVE-2018-17456, you should update Git to version 2.14.5 or later.
Where can I find more information about CVE-2018-17456?
You can find more information about CVE-2018-17456 at the following references: [http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html](http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html), [http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html](http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html), [http://www.securityfocus.com/bid/105523](http://www.securityfocus.com/bid/105523).