OS command injection in Git - CVE-2017-1000117

 

OS command injection in Git - CVE-2017-1000117

Published: August 15, 2017 / Updated: September 14, 2018


Vulnerability identifier: #VU7889
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-1000117
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The weakness exists due to command injection flaw. A remote attacker (e.g., repository) can return a specially crafted 'ssh://' URL during 'clone' commands to execute arbitrary shell commands with privileges of the current user.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

Git
Amazon Linux AMI
Debian Linux
Gentoo Linux
Arch Linux
Red Hat Enterprise Linux for x86_64
SUSE Linux
Slackware Linux
Ubuntu
Fedora
Opensuse
git (Alpine package)
rh-git29-git (Red Hat package)
git

How to mitigate CVE-2017-1000117

Update to version 2.14.1.

git (Alpine package) - update to 2.8.6-r0
rh-git29-git (Red Hat package) - addressed in versions 2.9.3-3.el6, 2.9.3-3.el7
git - addressed in versions 2.9.5-1.fc25, 2.13.5-1.fc26

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins