Heap-based buffer overflow in Git - CVE-2016-2315

 

Heap-based buffer overflow in Git - CVE-2016-2315

Published: April 8, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32317
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-2016-2315
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error in revision.c in git before 2.7.4 uses an incorrect integer data type, which. A remote attacker can use a to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Git
Amazon Linux AMI
Gentoo Linux
Fedora
SUSE Linux
Slackware Linux
Opensuse
git (Alpine package)
git

How to mitigate CVE-2016-2315

Update to version 2.7.4.

Git - update to 2.7.4
git (Alpine package) - update to 2.4.11-r0
git - addressed in versions 1.8.2.3-1.el5, 2.4.11-1.fc22, 2.5.5-1.fc23, 2.7.4-1.fc24

External References

Related Security Bulletins