{"id":"CVE-2018-11235","published":"2018-05-30T04:00:00Z","modified":"2024-08-05T08:01:52Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.4742,"percentile":0.9887,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.exploit-db.com/exploits/44822/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2147","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://usn.ubuntu.com/3671-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://marc.info/?l=git&m=152761328506724&w=2","tags":["x_refsource_MISC"]},{"url":"http://www.securitytracker.com/id/1040991","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1957","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201805-13","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securityfocus.com/bid/104345","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2018/dsa-4212","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":19.77},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":13,"skipped":1,"earliest":"2018-05-30","earliestUrl":"https://github.com/Rogdham/CVE-2018-11235","repos":[{"name":"Rogdham/CVE-2018-11235","url":"https://github.com/Rogdham/CVE-2018-11235","stars":48,"created":"2018-05-30"},{"name":"CHYbeta/CVE-2018-11235-DEMO","url":"https://github.com/CHYbeta/CVE-2018-11235-DEMO","stars":14,"created":"2018-06-01"},{"name":"qweraqq/CVE-2018-11235-Git-Submodule-CE","url":"https://github.com/qweraqq/CVE-2018-11235-Git-Submodule-CE","stars":3,"created":"2019-04-09"},{"name":"j4k0m/CVE-2018-11235","url":"https://github.com/j4k0m/CVE-2018-11235","stars":2,"created":"2021-09-22"},{"name":"ygouzerh/CVE-2018-11235","url":"https://github.com/ygouzerh/CVE-2018-11235","stars":1,"created":"2018-12-03"}]},"first":{"date":"2018-05-30","source":"PoC-in-GitHub","url":"https://github.com/Rogdham/CVE-2018-11235"},"provenance":"source"},"summary":{"text":"In Git versions 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, the flaw lies in how Git handles submodule names from the .gitmodules file during submodule operations. A malicious project with a crafted .gitmodules file can, when a user runs \"git clone --recurse-submodules\", achieve arbitrary script execution through directory traversal using \"../\" in submodule names and by running post-checkout hooks from a submodule, bypassing the intended restriction that hooks are not fetched from remote servers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:41:58Z"},"euvd":{"id":"EUVD-2018-3275","exploited":false,"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/44822/"]}