CVE-2018-11235
Reported by mitre · Published May 30, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| git | Arch Linux | 2.17.1-1 |
| git | Alpine | 2.17.1-r0, 2.15.2-r0, 2.13.7, 2.11.3-r1 |
| git-email | Amazon Linux | 2.14.4-1.amzn2 |
| git-p4 | Amazon Linux | 2.14.4-1.amzn2 |
| perl-Git | Amazon Linux | 2.14.4-1.amzn2 |
| git | Amazon Linux | 2.14.4-1.amzn2 |
| git | git-scm | 2.16.3, 2.15.1, 2.14.3, 2.13.6 |
| git | Ubuntu:14.04:LTS | 1:1.9.1-1ubuntu0.8 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- May 30, 2018 CVE Published
- May 30, 2018 PoC Published (13 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Sep 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-11235
vulnetix vdb fixes CVE-2018-11235
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-11235/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 44822 exploitx_refsource_EXPLOIT-DB
- RHSA-2018:2147 vendor-advisoryx_refsource_REDHAT
- USN-3671-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- 1040991 vdb-entryx_refsource_SECTRACK
- RHSA-2018:1957 vendor-advisoryx_refsource_REDHAT
- GLSA-201805-13 vendor-advisoryx_refsource_GENTOO
- 104345 vdb-entryx_refsource_BID
- x_refsource_MISC
- DSA-4212 vendor-advisoryx_refsource_DEBIAN
- openSUSE-SU-2020:0598 vendor-advisoryx_refsource_SUSE