Buffer overflow in cgit - CVE-2016-1901

 

Buffer overflow in cgit - CVE-2016-1901

Published: January 20, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32343
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-1901
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the Content-Length HTTP header, which triggers a buffer overflow.


Affected software

cgit
cgit (Alpine package)
cgit
Fedora

How to mitigate CVE-2016-1901

Install update from vendor's website.

cgit - update to 0.12
cgit (Alpine package) - update to 0.10.2-r0
cgit - addressed in versions 0.12-1.el6, 0.12-1.el7, 0.12-1.fc22, 0.12-1.fc23

External References

Related Security Bulletins