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…
Priority MEDIUM 52Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 10 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
EPSS 0.12387 96th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Red Hat: 2 advisoriesRed Hat: 10 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 10
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:git:git-shell:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Git |
| cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:* | 42.1 | Vulnerable | openSUSE |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.10:*:*:*:*:*:*:* | 16.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.04:*:*:*:*:*:*:* | 17.04 | Vulnerable | Canonical |
| cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:* | 24 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:25:*:*:*:*:*:*:* | 25 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:* | 26 | Vulnerable | Fedoraproject |
- cpe:2.3:a:git:git-shell:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Git
- cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:* Versions 42.1 Vulnerable ·openSUSE
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.10:*:*:*:*:*:*:* Versions 16.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.04:*:*:*:*:*:*:* Versions 17.04 Vulnerable ·Canonical
- cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:* Versions 24 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:25:*:*:*:*:*:*:* Versions 25 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:* Versions 26 Vulnerable ·Fedoraproject
Remediation
Red Hat 2 advisories
- RHSA-2017:2491 Released 2017-08-17 · Red Hat rating Importantrh-git29-git security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-git29-emacs-git-2.9.3-3.el6, rh-git29-emacs-git-el-2.9.3-3.el6, rh-git29-git-2.9.3-3.el6 +13
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-git29-git-2.9.3-3.el7, rh-git29-git-all-2.9.3-3.el7, rh-git29-git-core-2.9.3-3.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-git29-emacs-git-2.9.3-3.el6, rh-git29-emacs-git-el-2.9.3-3.el6, rh-git29-git-2.9.3-3.el6 +13
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-git29-git-2.9.3-3.el7, rh-git29-git-all-2.9.3-3.el7, rh-git29-git-core-2.9.3-3.el7 +11
- RHSA-2017:2004 Released 2017-08-01 · Red Hat rating Moderategit security and bug fix update
- Red Hat Enterprise Linux Client Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-1.8.3.1-11.el7 +13
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-1.8.3.1-11.el7 +13
- Red Hat Enterprise Linux Server (v. 7) git-1.8.3.1-11.el7, perl-Git-1.8.3.1-11.el7
- Red Hat Enterprise Linux Server Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-all-1.8.3.1-11.el7 +11
- Red Hat Enterprise Linux Workstation (v. 7) git-1.8.3.1-11.el7, perl-Git-1.8.3.1-11.el7
- Red Hat Enterprise Linux Workstation Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-all-1.8.3.1-11.el7 +11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2017:2491 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:2491 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2017:2491 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:2491 |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-8386
- 2026-10-03 Alias added: GHSA-xqh5-ghjx-6xv5
References
Exploit 1
Advisory 10
- FEDORA-2017-01a7989fc0
- FEDORA-2017-f4319b6dfc
- GLSA-201706-04
- FEDORA-2017-7ea0e02914
- https://insinuator.net/2017/05/git-shell-bypass-by-abusing-less-cve-2017-8386/
- https://kernel.googlesource.com/pub/scm/git/git/+/3ec804490a265f4c418a321428c12f3f18b7eff5
- RHSA-2017:2491
- openSUSE-SU-2017:1422
- RHSA-2017:2004
- DSA-3848
Sources
- CVE-2017-8386 · CVE Program
- CVE-2017-8386 · NVD
- FIRST EPSS
- GHSA-xqh5-ghjx-6xv5 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-8386 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences