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…
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 48.1% · top 1.1% of all CVEs (4 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
n/a
- affected n/a
References (11)
- 44822 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- RHSA-2018:2147 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-3671-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://marc.info/?l=git&m=152761328506724&w=2 (opens in a new tab)x_refsource_MISCx_transferred
- 1040991 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- RHSA-2018:1957 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- GLSA-201805-13 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- 104345 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/ (opens in a new tab)x_refsource_MISCx_transferred
- DSA-4212 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- openSUSE-SU-2020:0598 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-11235)Record last updated .