Privilege escalation in Git - CVE-2017-8386

 

Privilege escalation in Git - CVE-2017-8386

Published: June 6, 2017 / Updated: June 7, 2017


Vulnerability identifier: #VU6933
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-8386
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote authenticated attacker to gain elevated privileges on the target system.

The weakness exists due to an error when handling command-line options for the restricted set of git-shell commands. A remote attacker can use a repository name that starts with a - (dash) character to bypass git-shell restrictions and gain elevated privileges.

Successful exploitation of the vulnerability results in access to the system and information disclosure.

Affected software

Git
Debian Linux
Amazon Linux AMI
Arch Linux
Red Hat Enterprise Linux Server for ARM
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Ubuntu
Fedora
git (Alpine package)
git (Red Hat package)
git
rh-git29-git (Red Hat package)

How to mitigate CVE-2017-8386

Update to version 2.13.0.

git (Alpine package) - update to 2.6.7-r0
git (Red Hat package) - update to 1.8.3.1-11.el7
git - addressed in versions 2.7.5-1.fc24, 2.9.4-1.fc25, 2.13.0-1.fc26
rh-git29-git (Red Hat package) - addressed in versions 2.9.3-3.el6, 2.9.3-3.el7

External References

Related Security Bulletins