Out-of-bounds read in libgit2 - CVE-2018-8098

 

Out-of-bounds read in libgit2 - CVE-2018-8098

Published: March 19, 2018


Vulnerability identifier: #VU11154
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-8098
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allow a remote attacker to cause DoS condition on the target system.

The weakness exists in the index.c:read_entry() function due to out-of-bounds read while decompressing a compressed prefix length. A remote attacker can send a specially crafted repository index file, trick the victim into opening it and cause the service to crash.

Affected software

libgit2
Fedora
Ubuntu
libgit2 (Ubuntu package)
libgit2
python-pygit2

How to mitigate CVE-2018-8098

Update to version 0.26.2.

libgit2 (Ubuntu package) - addressed in versions 0.19.0-2ubuntu0.4+esm2, 0.24.1-2ubuntu0.2+esm3, 0.26.0+dfsg.1-1.1ubuntu0.2+esm2, 0.28.4+dfsg.1-2ubuntu0.1+esm1, 1.1.0+dfsg.1-4.1ubuntu0.1+esm1, 1.7.2+ds-1ubuntu3.1, 1.9.1+ds-1ubuntu1.1
libgit2 - addressed in versions 0.26.3-1.el7, 0.26.3-1.fc27, 0.26.3-1.fc28
python-pygit2 - update to 0.26.4-1.el7

External References

Related Security Bulletins