Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-11235 EUVD-2018-3275GHSA-v6w3-vcjx-mwhx

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…

Published May 30, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

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.17.1-1 —
Debian 13 git 1:2.17.1-1 —
Debian 12 git 1:2.17.1-1 —
Debian 9 git 1:2.11.0-3+deb9u3 DSA-4212-1
Debian 8 git 1:2.1.4-2.1+deb8u6 DSA-4212-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS git 1:2.17.1-1ubuntu0.1 USN-3671-1
Ubuntu 16.04 LTS git 1:2.7.4-0ubuntu1.4 USN-3671-1
Ubuntu 14.04 LTS git 1:1.9.1-1ubuntu0.8 USN-3671-1
ReleasePackageFixed inAdvisory
RHEL 7 git +15 1.8.3.1-14.el7_5 RHSA-2018:1957
RHEL 3 rh-git29-git +15 2.9.3-4.el6 RHSA-2018:2147
ReleasePackageFixed inAdvisory
SLES 15 SP1 git 2.26.1-3.25.2 SUSE-SU-2020:1121-1
SLES 15 git 2.16.4-3.3.2 SUSE-SU-2018:1872-1
SLES 15 libgit2 0.26.6-3.5.2 SUSE-SU-2018:2469-1
SLES 12 SP3 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SLES 12 SP3 libgit2 0.24.1-7.6.1 SUSE-SU-2018:3440-1
SLES 12 SP2 git 2.12.3-27.14.1 SUSE-SU-2018:1566-2, SUSE-SU-2018:1566-1
SLES 12 SP1 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SLES for SAP 12 SP3 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SLES for SAP 12 SP2 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SLES for SAP 12 SP1 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SUSE OpenStack Cloud 8 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SUSE OpenStack Cloud 7 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SUSE Manager Server 3.2 libgit2 0.24.1-7.6.1 SUSE-SU-2018:3440-1
SUSE Manager Server 3.1 libgit2 0.24.1-7.6.1 SUSE-SU-2018:3440-1
SUSE HPE Helion OpenStack 8 git 2.12.3-27.14.1 SUSE-SU-2018:1566-1
SUSE Enterprise Storage 4 git 2.12.3-27.14.1 SUSE-SU-2018:1566-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.17.1-r0 —
Alpine v3.23 git 2.17.1-r0 —
Alpine v3.22 git 2.17.1-r0 —
Alpine v3.21 git 2.17.1-r0 —
Alpine v3.20 git 2.17.1-r0 —
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 git 2.17.1-r0 —
Alpine v3.18 git 2.17.1-r0 —
Alpine v3.17 git 2.17.1-r0 —
Alpine v3.16 git 2.17.1-r0 —
Alpine v3.15 git 2.17.1-r0 —
Alpine v3.14 git 2.17.1-r0 —
Alpine v3.13 git 2.17.1-r0 —
Alpine v3.12 git 2.17.1-r0 —
Alpine v3.11 git 2.17.1-r0 —
Alpine v3.10 git 2.17.1-r0 —
Alpine v3.9 git 2.17.1-r0 —
Alpine v3.8 git 2.17.1-r0 —
Alpine v3.7 git 2.15.2-r0 —
Alpine v3.6 git 2.13.7 —
Alpine v3.5 git 2.11.3-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 git +14 2.14.4-1.amzn2 ALAS2-2018-1035

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 git +15 1.8.3.1-14.el7_5 ELSA-2018-1957

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.

GitHub 14 repositories · most starred shown

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

Advisories 16

References