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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | git | 2.33.0-1.3 | openSUSE-SU-2024:10786-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.3 | git | 2.6.7-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
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
- RHSA-2017:2491 Red Hat Security Advisory: rh-git29-git security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2017:2004 Red Hat Security Advisory: git security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DLA-938-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3848-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3287-1 git vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2017:1357-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10786-1 git-2.33.0-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:1432-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2017-2004 Moderate: git security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 7, 2017
References
- [git] 20170510 [ANNOUNCE] Git v2.12.3 and others mailing-list
- USN-3287-1 vendor-advisory
- FEDORA-2017-01a7989fc0 vendor-advisory
- FEDORA-2017-f4319b6dfc vendor-advisory
- GLSA-201706-04 vendor-advisory
- FEDORA-2017-7ea0e02914 vendor-advisory
- https://insinuator.net/2017/05/git-shell-bypass-by-abusing-less-cve-2017-8386/
- https://kernel.googlesource.com/pub/scm/git/git/+/3ec804490a265f4c418a321428c12f3f18b7eff5
- 1038479 vdb-entry
- RHSA-2017:2491 vendor-advisory
- openSUSE-SU-2017:1422 vendor-advisory
- RHSA-2017:2004 vendor-advisory
- 98409 vdb-entry
- DSA-3848 vendor-advisory