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.
What to do
Likely to be exploited: EPSS gives a 47% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | git | Fixed | 1:2.17.1-1ubuntu0.1 | UBUNTU-CVE-2018-11235 |
| Ubuntu 16.04 | git | Fixed | 1:2.7.4-0ubuntu1.4 | UBUNTU-CVE-2018-11235 |
| Ubuntu 14.04 | git | Fixed | 1:1.9.1-1ubuntu0.8 | UBUNTU-CVE-2018-11235 |
| Debian 14 | git | Fixed | 1:2.17.1-1 | DEBIAN-CVE-2018-11235 |
| Debian 13 | git | Fixed | 1:2.17.1-1 | DEBIAN-CVE-2018-11235 |
| Debian 12 | git | Fixed | 1:2.17.1-1 | DEBIAN-CVE-2018-11235 |
| Red Hat Enterprise Linux 8 | git | Not affected | ||
| Red Hat Enterprise Linux 8 | git-all | Not affected | ||
| Red Hat Enterprise Linux 8 | git-core | Not affected | ||
| Red Hat Enterprise Linux 8 | git-core-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | git-credential-libsecret | Not affected | ||
| Red Hat Enterprise Linux 8 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 8 | git-email | Not affected | ||
| Red Hat Enterprise Linux 8 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 8 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 8 | git-subtree | Not affected | ||
| Red Hat Enterprise Linux 8 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 8 | gitk | Not affected | ||
| Red Hat Enterprise Linux 8 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-git | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | emacs-git-el | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-all | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-bzr | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-cvs | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-daemon | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-email | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-gui | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-hg | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-p4 | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | git-svn | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | gitk | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | gitweb | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | perl-Git | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 7 | perl-Git-SVN | Fixed | 0:1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux 6 | emacs-git | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-git-el | Not affected | ||
| Red Hat Enterprise Linux 6 | git | Not affected | ||
| Red Hat Enterprise Linux 6 | git-all | Not affected | ||
| Red Hat Enterprise Linux 6 | git-cvs | Not affected | ||
| Red Hat Enterprise Linux 6 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 6 | git-email | Not affected | ||
| Red Hat Enterprise Linux 6 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 6 | gitk | Not affected | ||
| Red Hat Enterprise Linux 6 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Git | Not affected | ||
| Alpine Linux 3.24 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.23 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.22 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.21 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.20 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.19 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.18 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.17 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.16 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.15 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.14 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.13 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.12 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.11 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.10 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.9 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.8 | git | Fixed | 2.17.1-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.7 | git | Fixed | 2.15.2-r0 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.6 | git | Fixed | 2.13.7 | ALPINE-CVE-2018-11235 |
| Alpine Linux 3.5 | git | Fixed | 2.11.3-r1 | ALPINE-CVE-2018-11235 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:2147 (vendor-advisory)
- https://usn.ubuntu.com/3671-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1957 (vendor-advisory)
- https://security.gentoo.org/glsa/201805-13 (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4212 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html (vendor-advisory)
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.