CVE-2018-11235
publishedgit: arbitrary code execution when recursively cloning a malicious repository
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-1035 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | git | Fixed | 2.17.1-r0 | Package fix record |
| Debian | jessie | git | Advisory build | 1:2.1.4-2.1+deb8u6 | DSA-4212-1 |
| Oracle Linux | 7 | emacs-gitaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-emacs-gitnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Alpine Linux | v3.10 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.11 | git | Fixed | 2.17.1-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.13 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.14 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.15 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.16 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.17 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.18 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.5 | git | Fixed | 2.11.3-r1 | Package fix record |
| Alpine Linux | v3.6 | git | Fixed | 2.13.7 | Package fix record |
| Alpine Linux | v3.7 | git | Fixed | 2.15.2-r0 | Package fix record |
| Alpine Linux | v3.8 | git | Fixed | 2.17.1-r0 | Package fix record |
| Alpine Linux | v3.9 | git | Fixed | 2.17.1-r0 | Package fix record |
| Debian | stretch | git | Advisory build | 1:2.11.0-3+deb9u3 | DSA-4212-1 |
| Oracle Linux | 7 | emacs-gitx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | emacs-git-elaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | emacs-git-elx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-allaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-allx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-bzraarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-bzrx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-cvsaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-cvsx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-daemonaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-daemonx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-emailaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-emailx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-guiaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-guix86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-hgaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-hgx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-p4aarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-p4x86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-svnaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | git-svnx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitkaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitkx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitwebaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | gitwebx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | perl-Gitaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | perl-Gitx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | perl-Git-SVNaarch64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Oracle Linux | 7 | perl-Git-SVNx86_64 | Advisory build | 0:1.8.3.1-14.el7_5 | ELSA-2018-1957 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-emacs-git-elnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-gitsrc | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-gitx86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-allnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-corex86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-core-docx86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-cvsnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-daemonx86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-debuginfox86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-emailnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-guinoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-p4noarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-git-svnx86_64 | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-gitknoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-gitwebnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-perl-Gitnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-6 | rh-git29-perl-Git-SVNnoarch | Advisory build | 2.9.3-4.el6 | RHSA-2018:2147 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-gitnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-git-elnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gitaarch64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64le | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gits390x | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gitsrc | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | gitx86_64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-allnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-bzrnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-cvsnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-daemonaarch64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-daemonppc64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-daemonppc64le | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-daemons390x | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-daemonx86_64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-debuginfoaarch64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-debuginfoppc64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-debuginfoppc64le | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-debuginfos390x | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-debuginfox86_64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-emailnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-guinoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-hgnoarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-p4noarch | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-svnaarch64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
| Red Hat Enterprise Linux | RHEL-7 | git-svnppc64 | Advisory build | 1.8.3.1-14.el7_5 | RHSA-2018:1957 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
11- openSUSE-SU-2020:0598 http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- 104345 http://www.securityfocus.com/bid/104345
- 1040991 http://www.securitytracker.com/id/1040991
- RHSA-2018:1957 https://access.redhat.com/errata/RHSA-2018:1957
- RHSA-2018:2147 https://access.redhat.com/errata/RHSA-2018:2147
- https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/
- https://marc.info/?l=git&m=152761328506724&w=2
- GLSA-201805-13 https://security.gentoo.org/glsa/201805-13
- USN-3671-1 https://usn.ubuntu.com/3671-1/
- DSA-4212 https://www.debian.org/security/2018/dsa-4212
- 44822 https://www.exploit-db.com/exploits/44822/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d6d059e3b19faaec30eb58df50eecbcf5c4df30d33081c25a009b7330a76a574
- Ingested
- 23 Sep 2026, 07:43:27 UTC
- Source record
- Official CVE record