Buffer overflow in cgit - CVE-2016-1901
Published: January 20, 2016 / Updated: July 28, 2020
Vulnerability identifier: #VU32343
CSH Severity: High
CVSS v4.0: 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/E:U/U:Amber
CVE-ID: CVE-2016-1901
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: Jason A. Donenfeld
Affected software:
cgit
cgit
Detailed vulnerability description
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.
How to mitigate CVE-2016-1901
Install update from vendor's website.
Sources
- http://git.zx2c4.com/cgit/commit/?id=4458abf64172a62b92810c2293450106e6dfc763
- http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176167.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176198.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00067.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00084.html
- http://lists.zx2c4.com/pipermail/cgit/2016-January/002817.html
- http://www.debian.org/security/2016/dsa-3545
- http://www.openwall.com/lists/oss-security/2016/01/14/3
- http://www.openwall.com/lists/oss-security/2016/01/14/6