Out-of-bounds read in libgit2 - CVE-2016-8568

 

Out-of-bounds read in libgit2 - CVE-2016-8568

Published: February 3, 2017 / Updated: July 28, 2020


Vulnerability identifier: #VU32003
CSH Severity: Low
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-8568
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local non-authenticated attacker to perform a denial of service (DoS) attack.

The git_commit_message function in oid.c in libgit2 before 0.24.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a cat-file command with a crafted object file.


Affected software

libgit2
Arch Linux
Fedora
libgit2-0.27 (Alpine package)
libgit2-1.0 (Alpine package)
libgit2

How to mitigate CVE-2016-8568

Install update from vendor's website.

libgit2-1.0 (Alpine package) - update to 1.0.1-r1
libgit2 - addressed in versions 0.23.4-2.fc23, 0.24.2-2.fc24, 0.24.2-2.fc25, 0.26.3-1.fc27, 0.26.3-1.fc28

External References

Related Security Bulletins