Skip to main content
← All vulnerabilities
CVE-2018-11235

In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can

Published
Last modified
published
Not listed in CISA KEV
15 proofs of concept on GitHub

Summary

In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 26

Exploit-DB

access.redhat.com

usn.ubuntu.com

marc.info

securitytracker.com

security.gentoo.org

securityfocus.com

blogs.msdn.microsoft.com

debian.org

lists.opensuse.org

GitHub · AnonymKing/CVE-2018-11235

GitHub · CHYbeta/CVE-2018-11235-DEMO

GitHub · H0K5/clone_and_pwn

GitHub · Kiss-sh0t/CVE-2018-11235-poc

GitHub · Rezy-Dev/CVE-2018-11235

GitHub · Rogdham/CVE-2018-11235

GitHub · j4k0m/CVE-2018-11235

GitHub · jongmartinez/CVE-2018-11235-PoC

GitHub · knqyf263/CVE-2018-11235

GitHub · nthuong95/CVE-2018-11235

GitHub · qweraqq/CVE-2018-11235-Git-Submodule-CE

GitHub · twseptian/cve-2018-11235-git-submodule-ce-and-docker-ngrok-configuration

GitHub · vmotos/CVE-2018-11235

GitHub · xElkomy/CVE-2018-11235

GitHub · ygouzerh/CVE-2018-11235