CVE-2018-17456
git: arbitrary code execution via .gitmodules
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).
Description
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | git | 2.23.0-1.ph1 |
| Photon OS 2.0 | git | 2.23.0-1.ph2 |
| Photon OS 3.0 | git | 2.23.0-1.ph3 |
| Photon OS 5.0 | git, git-extras, git-lang | 2.43.7-1.ph5 |
| alpine 3.10 | git | 2.19.1-r0 |
| alpine 3.11 | git | 2.19.1-r0 |
| alpine 3.12 | git | 2.19.1-r0 |
| alpine 3.13 | git | 2.19.1-r0 |
| alpine 3.14 | git | 2.19.1-r0 |
| alpine 3.15 | git | 2.19.1-r0 |
| alpine 3.16 | git | 2.19.1-r0 |
| alpine 3.17 | git | 2.19.1-r0 |
Show all 103 entries from 44 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | git | 2.23.0-1.ph1 |
| Photon OS 2.0 | git | 2.23.0-1.ph2 |
| Photon OS 3.0 | git | 2.23.0-1.ph3 |
| Photon OS 5.0 | git | 2.43.7-1.ph5 |
| Photon OS 5.0 | git-extras | 2.43.7-1.ph5 |
| Photon OS 5.0 | git-lang | 2.43.7-1.ph5 |
| alpine 3.10 | git | 2.19.1-r0 |
| alpine 3.11 | git | 2.19.1-r0 |
| alpine 3.12 | git | 2.19.1-r0 |
| alpine 3.13 | git | 2.19.1-r0 |
| alpine 3.14 | git | 2.19.1-r0 |
| alpine 3.15 | git | 2.19.1-r0 |
| alpine 3.16 | git | 2.19.1-r0 |
| alpine 3.17 | git | 2.19.1-r0 |
| alpine 3.18 | git | 2.19.1-r0 |
| alpine 3.19 | git | 2.19.1-r0 |
| alpine 3.20 | git | 2.19.1-r0 |
| alpine 3.21 | git | 2.19.1-r0 |
| alpine 3.22 | git | 2.19.1-r0 |
| alpine 3.23 | git | 2.19.1-r0 |
| alpine 3.24 | git | 2.19.1-r0 |
| alpine 3.5 | git | 2.11.3-r2 |
| alpine 3.6 | git | 2.13.7-r1 |
| alpine 3.7 | git | 2.15.3-r0 |
| alpine 3.8 | git | 2.18.1-r0 |
| alpine 3.9 | git | 2.19.1-r0 |
| alpine edge | git | 2.19.1-r0 |
| amazon linux 1 | emacs-git | 2.14.5-1.59.amzn1 |
| amazon linux 1 | emacs-git-el | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-all | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-bzr | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-cvs | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-daemon | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-debuginfo | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-email | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-hg | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-p4 | 2.14.5-1.59.amzn1 |
| amazon linux 1 | git-svn | 2.14.5-1.59.amzn1 |
| amazon linux 1 | gitweb | 2.14.5-1.59.amzn1 |
| amazon linux 1 | perl-Git | 2.14.5-1.59.amzn1 |
| amazon linux 1 | perl-Git-SVN | 2.14.5-1.59.amzn1 |
| amazon linux 2 | git | 2.14.5-1.amzn2 |
| amazon linux 2 | git-all | 2.14.5-1.amzn2 |
| amazon linux 2 | git-core | 2.14.5-1.amzn2 |
| amazon linux 2 | git-core-doc | 2.14.5-1.amzn2 |
| amazon linux 2 | git-cvs | 2.14.5-1.amzn2 |
| amazon linux 2 | git-daemon | 2.14.5-1.amzn2 |
| amazon linux 2 | git-debuginfo | 2.14.5-1.amzn2 |
| amazon linux 2 | git-email | 2.14.5-1.amzn2 |
| amazon linux 2 | git-gnome-keyring | 2.14.5-1.amzn2 |
| amazon linux 2 | git-gui | 2.14.5-1.amzn2 |
| amazon linux 2 | git-p4 | 2.14.5-1.amzn2 |
| amazon linux 2 | git-svn | 2.14.5-1.amzn2 |
| amazon linux 2 | gitk | 2.14.5-1.amzn2 |
| amazon linux 2 | gitweb | 2.14.5-1.amzn2 |
| amazon linux 2 | perl-Git | 2.14.5-1.amzn2 |
| amazon linux 2 | perl-Git-SVN | 2.14.5-1.amzn2 |
| debian 11 | git | 1:2.19.1-1 |
| debian 12 | git | 1:2.19.1-1 |
| debian 13 | git | 1:2.19.1-1 |
| debian 14 | git | 1:2.19.1-1 |
| debian 8 | git | 1:2.1.4-2.1+deb8u7 |
| debian 9 | git | 1:2.11.0-3+deb9u4 |
| echo | git | 1:2.19.1-1 |
| Oracle Linux 6 | emacs-git | 1.7.1-10.el6_10 |
| Oracle Linux 6 | emacs-git-el | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-all | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-cvs | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-daemon | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-email | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-gui | 1.7.1-10.el6_10 |
| Oracle Linux 6 | git-svn | 1.7.1-10.el6_10 |
| Oracle Linux 6 | gitk | 1.7.1-10.el6_10 |
| Oracle Linux 6 | gitweb | 1.7.1-10.el6_10 |
| Oracle Linux 6 | perl-Git | 1.7.1-10.el6_10 |
| Oracle Linux 7 | emacs-git | 1.8.3.1-20.el7 |
| Oracle Linux 7 | emacs-git-el | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-all | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-bzr | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-cvs | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-daemon | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-email | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-gnome-keyring | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-gui | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-hg | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-instaweb | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-p4 | 1.8.3.1-20.el7 |
| Oracle Linux 7 | git-svn | 1.8.3.1-20.el7 |
| Oracle Linux 7 | gitk | 1.8.3.1-20.el7 |
| Oracle Linux 7 | gitweb | 1.8.3.1-20.el7 |
| Oracle Linux 7 | perl-Git | 1.8.3.1-20.el7 |
| Oracle Linux 7 | perl-Git-SVN | 1.8.3.1-20.el7 |
| root.io debian 11 | rootio-git | 1:2.19.1-1 |
| root.io debian 12 | rootio-git | 1:2.19.1-1 |
| root.io debian 13 | rootio-git | 1:2.19.1-1 |
| ubuntu 14.04 | git | 1:1.9.1-1ubuntu0.9 |
| ubuntu 16.04 | git | 1:2.7.4-0ubuntu1.5 |
| ubuntu 16.04-ESM | git | 1:2.7.4-0ubuntu1.5 |
| ubuntu 18.04 | git | 1:2.17.1-1ubuntu0.3 |
| ubuntu 18.04-ESM | git | 1:2.17.1-1ubuntu0.3 |
References
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html
- http://www.securityfocus.com/bid/105523
- http://www.securityfocus.com/bid/107511
- http://www.securitytracker.com/id/1041811
- https://access.redhat.com/errata/RHSA-2018:3408
- https://access.redhat.com/errata/RHSA-2018:3505
- https://access.redhat.com/errata/RHSA-2018:3541
All 25 references
- https://access.redhat.com/errata/RHSA-2020:0316
- https://access.redhat.com/security/cve/CVE-2018-17456
- https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404
- https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46
- https://linux.oracle.com/cve/CVE-2018-17456.html
- https://linux.oracle.com/errata/ELSA-2020-0316.html
- https://marc.info/?l=git&m=153875888916397&w=2
- https://nvd.nist.gov/vuln/detail/CVE-2018-17456
- https://public-inbox.org/git/xmqqy3bcuy3l.fsf@gitster-ct.c.googlers.com/
- https://seclists.org/bugtraq/2019/Mar/30
- https://ubuntu.com/security/notices/USN-3791-1
- https://usn.ubuntu.com/3791-1/
- https://www.cve.org/CVERecord?id=CVE-2018-17456
- https://www.debian.org/security/2018/dsa-4311
- https://www.exploit-db.com/exploits/45548/
- https://www.exploit-db.com/exploits/45631/
- https://www.openwall.com/lists/oss-security/2018/10/06/3