Path traversal in CouchDB and MochiWeb - CVE-2012-5641

 

Path traversal in CouchDB and MochiWeb - CVE-2012-5641

Published: March 18, 2014 / Updated: August 10, 2020


Vulnerability identifier: #VU41906
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-2012-5641
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Foundation
MochiWeb
Affected software:
CouchDB
MochiWeb

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 partition2 function in mochiweb_util.erl in MochiWeb before 2.4.0, as used in Apache CouchDB before 1.0.4, 1.1.x before 1.1.2, and 1.2.x before 1.2.1,. A remote authenticated attacker can send a specially crafted HTTP request and remote attackers to read arbitrary files via a . (dot dot backslash) in the default URI.


How to mitigate CVE-2012-5641

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

Sources