CVE-2018-11235
- State
- Published
- Severity
- Not scored
- Published
- May 30, 2018
- Updated
- Aug 5, 2024
- Reserved
- May 18, 2018
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
The record has no CVSS score.
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- 44822exploit
- RHSA-2018:2147vendor-advisory
- USN-3671-1vendor-advisory
- https://marc.info/?l=git&m=152761328506724&w=2
- 1040991vdb-entry
- RHSA-2018:1957vendor-advisory
- GLSA-201805-13vendor-advisory
- 104345vdb-entry
- https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/
- DSA-4212vendor-advisory
- openSUSE-SU-2020:0598vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.