Improper access control in libgit2 - CVE-2016-10130

 

Improper access control in libgit2 - CVE-2016-10130

Published: March 24, 2017 / Updated: July 28, 2020


Vulnerability identifier: #VU32002
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-10130
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to manipulate data.

The http_connect function in transports/http.c in libgit2 before 0.24.6 and 0.25.x before 0.25.1 might allow man-in-the-middle attackers to spoof servers by leveraging clobbering of the error variable.


Affected software

libgit2
Arch Linux
Fedora
Ubuntu
libgit2-0.27 (Alpine package)
libgit2-1.0 (Alpine package)
libgit2-dev (Ubuntu package)
libgit2-24 (Ubuntu package)
libgit2

How to mitigate CVE-2016-10130

Install update from vendor's website.

libgit2-1.0 (Alpine package) - update to 1.0.1-r1
libgit2-dev (Ubuntu package) - update to 0.24.1-2ubuntu0.2+esm3
libgit2-24 (Ubuntu package) - update to 0.24.1-2ubuntu0.2+esm3
libgit2 - addressed in versions 0.24.6-1.el7, 0.24.6-1.fc24, 0.24.6-1.fc25

External References

Related Security Bulletins