Path Traversal in Gitforwindows Git
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 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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.481 (98.9th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 99th percentile — 98.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.488 · newest: 0.481 · change: -0.007
Affected products
- Gitforwindows Git
- Git-Scm Git — versions 2.17.0
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Debian Linux — versions 8.0, 9.0
- Red Hat Enterprise Linux — versions 7.0
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Server Eus — versions 7.5
- Red Hat Enterprise Linux Workstation — versions 7.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.exploit-db.com/exploits/44822/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- access.redhat.com/errata/RHSA-2018:2147 (vendor-advisory, Third Party Advisory)
- usn.ubuntu.com/3671-1/ (vendor-advisory, Third Party Advisory)
- marc.info/ (Third Party Advisory, Release Notes)
- www.securitytracker.com/id/1040991 (VDB Entry, Third Party Advisory, vdb-entry)
- access.redhat.com/errata/RHSA-2018:1957 (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/201805-13 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/104345 (VDB Entry, Third Party Advisory, vdb-entry)
- blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security… (Technical Description, Patch, Vendor Advisory)
- www.debian.org/security/2018/dsa-4212 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2018-11235?
- CVE-2018-11235 is a high-severity vulnerability in Gitforwindows Git, classified under Path Traversal. CVSS score: 7.8/10. Published 2018-05-30.
- How severe is CVE-2018-11235?
- High severity. CVSS v3 base score is 7.8 out of 10.
- Is CVE-2018-11235 known to be exploited?
- 60 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.