Skip to content
OpenAdvisories
Unscored Public exploit CVE-2017-8386 EUVD-2017-17339GHSA-xqh5-ghjx-6xv5

git-shell in git before 2.4.12, 2.5.x before 2.5.6, 2.6.x before 2.6.7, 2.7.x before 2.7.5, 2.8.x before 2.8.5, 2.9.x before 2.9.4, 2.10.x …

Published Jun 1, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

git-shell in git before 2.4.12, 2.5.x before 2.5.6, 2.6.x before 2.6.7, 2.7.x before 2.7.5, 2.8.x before 2.8.5, 2.9.x before 2.9.4, 2.10.x before 2.10.3, 2.11.x before 2.11.2, and 2.12.x before 2.12.3 might allow remote authenticated users to gain privileges via a repository name that starts with a - (dash) 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.11.0-3 —
Debian 13 git 1:2.11.0-3 —
Debian 12 git 1:2.11.0-3 —
Debian 8 git 1:2.1.4-2.1+deb8u3 DSA-3848-1
Debian 7 git 1:1.7.10.4-1+wheezy4 DLA-938-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS git 1:2.7.4-0ubuntu1.1 USN-3287-1
Ubuntu 14.04 LTS git 1:1.9.1-1ubuntu0.5 USN-3287-1
ReleasePackageFixed inAdvisory
RHEL 7 git +15 1.8.3.1-11.el7 RHSA-2017:2004
RHEL 2 rh-git29-git +15 2.9.3-3.el6 RHSA-2017:2491
ReleasePackageFixed inAdvisory
SLES 12 SP2 git 2.12.3-26.1 SUSE-SU-2017:1357-1
SLES 12 SP1 git 2.12.3-26.1 SUSE-SU-2017:1357-1
SLES 11 SP4 git 1.7.12.4-0.17.1 SUSE-SU-2017:1432-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Studio Onsite 1.3 git 1.7.12.4-0.17.1 SUSE-SU-2017:1432-1
SLES for SAP 12 SP2 git 2.12.3-26.1 SUSE-SU-2017:1357-1
SLES for SAP 12 SP1 git 2.12.3-26.1 SUSE-SU-2017:1357-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git 2.33.0-1.3 openSUSE-SU-2024:10786-1
ReleasePackageFixed inAdvisory
Alpine v3.3 git 2.6.7-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 git +15 1.8.3.1-11.el7 ELSA-2017-2004

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 1 repository

  • suz1n/WHS3_vulhub ★ 0 · Apr 27, 2025

    PoC for CVE-2017-8386 Git-Shell sandbox bypass vulnerability.

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

Advisories 9

References