Vulnerability Details : 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 category: Directory traversalExecute code
Products affected by CVE-2018-11235
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:2.17.0:*:*:*:*:*:*:*
- cpe:2.3:a:gitforwindows:git:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-11235
12.50%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 95 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-11235
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
7.8
|
HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2018-11235
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-11235
-
http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
[security-announce] openSUSE-SU-2020:0598-1: moderate: Security update f
-
https://access.redhat.com/errata/RHSA-2018:1957
RHSA-2018:1957 - Security Advisory - Red Hat Customer PortalThird Party Advisory
-
http://www.securityfocus.com/bid/104345
Git CVE-2018-11235 Arbitrary Code Execution VulnerabilityThird Party Advisory;VDB Entry
-
https://usn.ubuntu.com/3671-1/
USN-3671-1: Git vulnerabilities | Ubuntu security noticesThird Party Advisory
-
https://www.exploit-db.com/exploits/44822/
404 Page Not Found | Exploit DatabaseExploit;VDB Entry;Third Party Advisory
-
https://access.redhat.com/errata/RHSA-2018:2147
RHSA-2018:2147 - Security Advisory - Red Hat Customer PortalThird Party Advisory
-
https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/
Remediating the May 2018 Git Security Vulnerability | Azure DevOps BlogPatch;Technical Description;Vendor Advisory
-
https://www.debian.org/security/2018/dsa-4212
Debian -- Security Information -- DSA-4212-1 gitThird Party Advisory
-
http://www.securitytracker.com/id/1040991
Git Submodule Name Validation Flaw Lets Remote Users Execute Arbitrary Code on the Target System - SecurityTrackerThird Party Advisory;VDB Entry
-
https://security.gentoo.org/glsa/201805-13
Git: Multiple vulnerabilities (GLSA 201805-13) — Gentoo securityThird Party Advisory
-
https://marc.info/?l=git&m=152761328506724&w=2
'[ANNOUNCE] Git v2.17.1, v2.13.7, v2.14.4, v2.15.2 and v2.16.4' - MARCRelease Notes;Third Party Advisory
Jump to