Vulnerability Details : CVE-2012-5641
Directory traversal vulnerability 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, allows remote attackers to read arbitrary files via a ..\ (dot dot backslash) in the default URI.
Vulnerability category: Directory traversal
Exploit prediction scoring system (EPSS) score for CVE-2012-5641
Probability of exploitation activity in the next 30 days: 2.04%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 89 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2012-5641
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST |
CWE ids for CVE-2012-5641
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2012-5641
-
http://seclists.org/fulldisclosure/2013/Jan/81
Full Disclosure: CVE-2012-5641 Apache CouchDB Information disclosure via unescaped backslashes in URLs on Windows
-
https://github.com/melkote/mochiweb/commit/ac2bf
Issue 92: Do not allow backslashes in path (security). · melkote/mochiweb@ac2bf2a · GitHubExploit;Patch
-
https://exchange.xforce.ibmcloud.com/vulnerabilities/81240
Apache CouchDB directory traversal CVE-2012-5641 Vulnerability Report
-
http://www.securityfocus.com/bid/57313
MochiWeb CVE-2012-5641 Directory Traversal Vulnerability
-
https://github.com/mochi/mochiweb/issues/92
Using backslash on Path, arbitrary files can be accessed on Windows · Issue #92 · mochi/mochiweb · GitHub
Products affected by CVE-2012-5641
- cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.1.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:1.0.2:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:*:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:2.3.0:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:2.2.1:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:2.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:2.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:mochiweb_project:mochiweb:2.1.0:*:*:*:*:*:*:*