# CVE-2018-11235

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-05-30 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2018-11235, RHSA-2018:1957, UBUNTU-CVE-2018-11235, DEBIAN-CVE-2018-11235, DSA-4212-1
- Record: https://cvemate.com/vulnerability/CVE-2018-11235 · JSON: https://cvemate.com/vulnerability/CVE-2018-11235/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.0, NVD) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 47.42%, percentile 98.87%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected (first 20 of 29)

- alpine git (Alpine Linux): ≥ 2.14.0, \< 2.17.1-r0 \| ≥ 2.14.0, \< 2.11.3-r1 \| ≥ 2.14.0, \< 2.13.7 \| ≥ 2.14.0, \< 2.15.2-r0 \| \< 2.17.1-r0 \| \< 2.11.3-r1 \| \< 2.13.7 \| \< 2.15.2-r0
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.10 \| 18.04
- debian git (Debian): \< 1:2.17.1-1 \| \< 1:2.1.4-2.1+deb8u6 \| \< 1:2.11.0-3+deb9u3
- ubuntu git (Ubuntu): \< 1:1.9.1-1ubuntu0.8 \| \< 1:2.7.4-0ubuntu1.4 \| \< 1:2.17.1-1ubuntu0.1
- debian debian\_linux: 8.0 \| 9.0
- git-scm git: ≤ 2.13.6 \| ≥ 2.14.0, ≤ 2.14.3 \| ≥ 2.15.0, ≤ 2.15.1 \| ≥ 2.16.0, ≤ 2.16.3 \| 2.17.0
- gitforwindows git: ≤ 2.17.1
- redhat enterprise\_linux: 7.0
- redhat enterprise\_linux\_desktop: 7.0
- redhat enterprise\_linux\_server: 7.0
- redhat enterprise\_linux\_server\_eus: 7.5
- redhat enterprise\_linux\_workstation: 7.0
- redhat emacs-git (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat emacs-git-el (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git-all (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git-bzr (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git-cvs (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git-daemon (Red Hat): \< 0:1.8.3.1-14.el7\_5
- redhat git-debuginfo (Red Hat): \< 0:1.8.3.1-14.el7\_5

## References (first 20 of 23)

- <https://www.exploit-db.com/exploits/44822/>
- <https://access.redhat.com/errata/RHSA-2018:2147>
- <https://usn.ubuntu.com/3671-1/>
- <https://marc.info/?l=git&m=152761328506724&w=2>
- <http://www.securitytracker.com/id/1040991>
- <https://access.redhat.com/errata/RHSA-2018:1957>
- <https://security.gentoo.org/glsa/201805-13>
- <http://www.securityfocus.com/bid/104345>
- <https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/>
- <https://www.debian.org/security/2018/dsa-4212>
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html>
- <https://security.alpinelinux.org/vuln/CVE-2018-11235>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1583862>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_1957.json>
- <https://access.redhat.com/security/cve/CVE-2018-11235>
- <https://www.cve.org/CVERecord?id=CVE-2018-11235>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-11235>
- <https://www.edwardthomson.com/blog/upgrading_git_for_cve2018_11235.html>
- <https://ubuntu.com/security/CVE-2018-11235>

---

Data as of 2026-12-05T03:11:10.078Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
