Integer overflow in libgit2 - CVE-2018-10887

 

Integer overflow in libgit2 - CVE-2018-10887

Published: July 11, 2018 / Updated: July 12, 2018


Vulnerability identifier: #VU13842
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-10887
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local attacker to obtain potentially sensitive information or cause DoS condition on the target system.

The vulnerability exists due to integer overflow when unexpected sign extension in the git_delta_apply function of the delta.c file. A remote unauthenticated attacker can trigger an out-of-bounds read condition, bypass bounds check and read sensitive memory information or cause the service to crash.


Affected software

libgit2
libgit2-0.27 (Alpine package)
libgit2-1.0 (Alpine package)
libgit2
Fedora
Opensuse

How to mitigate CVE-2018-10887

Update to version 0.26.5 or 0.27.3.

libgit2 - addressed in versions 0.26.5, 0.27.3
libgit2-1.0 (Alpine package) - update to 1.0.1-r1
libgit2 - addressed in versions 0.26.5-1.el7, 0.26.5-1.fc27, 0.26.5-1.fc28

External References

Related Security Bulletins