Vulnerability identifier: #VU14196
Vulnerability risk: High
CVSSv3.1: 9.3 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:F/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-22
Exploitation vector: Network
Exploit availability: Yes
Vulnerable software:
cgit
Client/Desktop applications /
Software for system administration
Vendor: Jason A. Donenfeld
Description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists in cgit_clone_objects due to path traversal when `enable-http-clone=1` is not turned off, as demonstrated by a cgit/cgit.cgi/git/objects/?path=../ request. A remote unauthenticated attacker can conduct directory traversal attack and execute arbitrary code with elevated privileges.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Mitigation
Update to version 1.2.1.
Vulnerable software versions
cgit: 0.1 - 1.2
External links
http://lists.zx2c4.com/pipermail/cgit/2018-August/004176.html
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.