Path traversal in cgit - CVE-2013-2117

 

Path traversal in cgit - CVE-2013-2117

Published: August 9, 2013 / Updated: July 28, 2020


Vulnerability identifier: #VU32667
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2013-2117
CWE-ID: CWE-22
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 perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in the cgit_parse_readme function in ui-summary.c in cgit before 0.9.2, when a readme file is set to a filesystem path,. A remote authenticated attacker can send a specially crafted HTTP request and remote attackers to read arbitrary files via a . (dot dot) in the url parameter.


How to mitigate CVE-2013-2117

Update to version 0.9.2.

Sources