CVE-2018-11235Git Path Traversal
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.
Published May 30, 2018 · Updated Aug 7, 2026 · Also known as ALPINE-CVE-2018-11235, DEBIAN-CVE-2018-11235, DSA-4212-1, UBUNTU-CVE-2018-11235
Key Facts
Patch in the next maintenance window- CVE-2018-11235 is a high-severity vulnerability (CVSS 7.8 v3.1) affecting Git (Gitforwindows), Ubuntu Linux (Canonical), Debian Linux and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 48% probability of exploitation in the next 30 days.
- Fixed versions are available, including emacs-git 1.8.3.1-14.el7_5, emacs-git 2.14.4-2.58.amzn1, emacs-git-el 1.8.3.1-14.el7_5.
- Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Scores
CVSS v3.1
7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
48%
Higher than 98.8% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
46/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
254 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GitGitforwindows | 2.17.0 | 2.17.1 |
| Ubuntu LinuxCanonical | 14.04, 16.04, 17.10, 18.04 | n/a |
| Debian LinuxDebian | 8.0, 9.0 | n/a |
| Enterprise LinuxRedhat | 7.0 | n/a |
| Enterprise Linux DesktopRedhat | 7.0 | n/a |
Patched Releases
emacs-git
1.8.3.1-14.el7_5, 2.14.4-2.58.amzn1
emacs-git-el
1.8.3.1-14.el7_5, 2.14.4-2.58.amzn1
Git
0:1.8.3.1-14.el7_5, 1:1.9.1-1ubuntu0.8, 1:2.1.4-2.1+deb8u6, 1:2.11.0-3+deb9u3, 1:2.17.1-1, 1:2.17.1-1ubuntu0.1, 1:2.7.4-0ubuntu1.4, 1.8.3.1-14.el7_5, 2.11.3-r1, 2.12.3-27.14.1, 2.13.7, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.15.2-r0, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.17.1-1, 2.17.1-1.ph1, 2.17.1-1.ph2, 2.17.1-r0, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3, 2.43.7-1.ph5, <=2.17.1
git-all
1.8.3.1-14.el7_5, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1
git-arch
2.12.3-27.14.1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-bzr
1.8.3.1-14.el7_5, 2.14.4-2.58.amzn1
git-core
2.12.3-27.14.1, 2.14.4-1.amzn2, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-core-doc
2.14.4-1.amzn2
git-credential-gnome-keyring
2.16.4-lp150.2.3.1, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-credential-libsecret
2.16.4-lp150.2.3.1, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-cvs
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-daemon
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-doc
2.12.3-27.14.1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-email
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-extras
2.43.7-1.ph5
git-gnome-keyring
2.14.4-1.amzn2
git-gui
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-hg
1.8.3.1-14.el7_5, 2.14.4-2.58.amzn1
git-lang
2.43.7-1.ph5
git-p4
1.8.3.1-14.el7_5, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.16.4-lp150.2.3.1, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-scm git
<=2.13.6
git-svn
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
git-web
2.12.3-27.14.1, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
gitk
1.8.3.1-14.el7_5, 2.12.3-27.14.1, 2.14.4-1.amzn2, 2.16.4-3.3.2, 2.16.4-lp150.2.3.1, 2.26.1-3.25.2, 2.26.1-lp151.4.9.1, 2.33.0-1.3
gitweb
1.8.3.1-14.el7_5, 2.14.4-1.amzn2, 2.14.4-2.58.amzn1
Timeline
Publicly disclosed
May 30, 2018
Last updated
Aug 7, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- advisorysecurity.alpinelinux.org · CVE-2018-11235
- advisorysecurity-tracker.debian.org · CVE-2018-11235
- advisoryubuntu.com · CVE-2018-11235
- advisorycve.org · CVERecord
- advisoryRHSA-2018:1957
FAQ
Common Questions.
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.
Affected: Git (Gitforwindows) versions 2.17.0; Ubuntu Linux (Canonical) versions 14.04, 16.04, 17.10, 18.04; Debian Linux versions 8.0, 9.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including emacs-git 1.8.3.1-14.el7_5, emacs-git 2.14.4-2.58.amzn1, emacs-git-el 1.8.3.1-14.el7_5.
Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Is CVE-2018-11235 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo