Heap-based buffer overflow in cgit - CVE-2012-4465

 

Heap-based buffer overflow in cgit - CVE-2012-4465

Published: October 10, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43403
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2012-4465
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Jason A. Donenfeld
Affected software:
cgit

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the substr function in parsing.c in cgit 0.9.0.3 and earlier. A remote attacker can use an empty username in the to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2012-4465

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Sources