Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-17456 EUVD-2018-9209GHSA-g986-jp62-5xq6

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 …

Published Oct 6, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 git 1:2.19.1-1 —
Debian 13 git 1:2.19.1-1 —
Debian 12 git 1:2.19.1-1 —
Debian 9 git 1:2.11.0-3+deb9u4 DSA-4311-1
Debian 8 git 1:2.1.4-2.1+deb8u7 DLA-1533-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS git 1:2.17.1-1ubuntu0.3 USN-3791-1
Ubuntu 16.04 LTS git 1:2.7.4-0ubuntu1.5 USN-3791-1
Ubuntu 14.04 LTS git 1:1.9.1-1ubuntu0.9 USN-3791-1
ReleasePackageFixed inAdvisory
RHEL 7 git +17 1.8.3.1-20.el7 RHSA-2018:3408
RHEL 6 git +11 1.7.1-10.el6_10 RHSA-2020:0316
RHEL 3 rh-git29-git +15 2.9.3-7.el6 RHSA-2018:3541
ReleasePackageFixed inAdvisory
SLES 15 SP1 git 2.26.1-3.25.2 SUSE-SU-2020:1121-1
SLES 15 git 2.16.4-3.6.1 SUSE-SU-2018:3150-1
SLES 15 libgit2 0.26.8-3.8.1 SUSE-SU-2018:4009-1
SLES 12 SP4 git 2.12.3-27.17.2 SUSE-SU-2018:4088-3
SLES 12 SP3 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SLES 12 SP2 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP1 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SLES 12 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SLES for SAP 12 SP4 git 2.12.3-27.17.2 SUSE-SU-2018:4088-3
SLES for SAP 12 SP3 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SLES for SAP 12 SP2 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SLES for SAP 12 SP1 git 2.12.3-27.17.2 SUSE-SU-2018:4088-2
SUSE OpenStack Cloud 8 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SUSE OpenStack Cloud 7 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SUSE HPE Helion OpenStack 8 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
SUSE Enterprise Storage 4 git 2.12.3-27.17.2 SUSE-SU-2018:4088-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git 2.33.0-1.3 openSUSE-SU-2024:10786-1
openSUSE Tumbleweed libgit2 1.1.1-1.2 openSUSE-SU-2024:10943-1
openSUSE Leap 15.1 git 2.26.1-lp151.4.9.1 openSUSE-SU-2020:0598-1
ReleasePackageFixed inAdvisory
Alpine v3.24 git 2.19.1-r0 —
Alpine v3.23 git 2.19.1-r0 —
Alpine v3.22 git 2.19.1-r0 —
Alpine v3.21 git 2.19.1-r0 —
Alpine v3.20 git 2.19.1-r0 —
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 git 2.19.1-r0 —
Alpine v3.18 git 2.19.1-r0 —
Alpine v3.17 git 2.19.1-r0 —
Alpine v3.16 git 2.19.1-r0 —
Alpine v3.15 git 2.19.1-r0 —
Alpine v3.14 git 2.19.1-r0 —
Alpine v3.13 git 2.19.1-r0 —
Alpine v3.12 git 2.19.1-r0 —
Alpine v3.11 git 2.19.1-r0 —
Alpine v3.10 git 2.19.1-r0 —
Alpine v3.9 git 2.19.1-r0 —
Alpine v3.8 git 2.18.1-r0 —
Alpine v3.7 git 2.15.3-r0 —
Alpine v3.6 git 2.13.7-r1 —
Alpine v3.5 git 2.11.3-r2 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 git +14 2.14.5-1.amzn2 ALAS2-2018-1093

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 git +17 1.8.3.1-20.el7 ELSA-2018-3408

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

GitHub 5 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 17

References