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.
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-dev (Ubuntu package)
libgit2-26 (Ubuntu package)
libgit2
python-pygit2
Fedora
Ubuntu
libgit2-dev (Ubuntu package)
libgit2-26 (Ubuntu package)
libgit2
python-pygit2
How to mitigate CVE-2018-8098
Update to version 0.26.2.
libgit2-dev (Ubuntu package) - update to 0.26.0+dfsg.1-1.1ubuntu0.2+esm2
libgit2-26 (Ubuntu package) - update to 0.26.0+dfsg.1-1.1ubuntu0.2+esm2
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
libgit2-26 (Ubuntu package) - update to 0.26.0+dfsg.1-1.1ubuntu0.2+esm2
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