Path traversal in cgit - CVE-2018-14912

 

Path traversal in cgit - CVE-2018-14912

Published: August 3, 2018 / Updated: June 17, 2021


Vulnerability identifier: #VU14196
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-2018-14912
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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.


Affected software

cgit
Debian Linux
Arch Linux
Opensuse
cgit (Alpine package)

How to mitigate CVE-2018-14912

Update to version 1.2.1.

cgit - update to 1.2.1
cgit (Alpine package) - update to 1.0-r2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins