Vulnerability Name:

CVE-2012-5641 (CCN-81240)

Assigned:2012-10-24
Published:2013-01-14
Updated:2017-08-29
Summary: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.
CVSS v3 Severity:5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
3.7 Low (Temporal CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
3.7 Low (CCN Temporal CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
Vulnerability Type:CWE-22
Vulnerability Consequences:Gain Access
References:Source: CCN
Type: Apache Web site
The CouchDB Project

Source: MITRE
Type: CNA
CVE-2012-5641

Source: FULLDISC
Type: UNKNOWN
20130114 CVE-2012-5641 Apache CouchDB Information disclosure via unescaped backslashes in URLs on Windows

Source: CCN
Type: SA51765
Apache CouchDB Multiple Vulnerabilities

Source: SECUNIA
Type: UNKNOWN
51765

Source: BID
Type: UNKNOWN
57313

Source: CCN
Type: BID-57313
MochiWeb CVE-2012-5641 Directory Traversal Vulnerability

Source: XF
Type: UNKNOWN
apache-couchdb-dir-traversal(81240)

Source: XF
Type: UNKNOWN
apache-couchdb-dir-traversal(81240)

Source: CONFIRM
Type: Exploit, Patch
https://github.com/melkote/mochiweb/commit/ac2bf

Source: CCN
Type: MochiWeb Web site
MochiWeb

Source: CONFIRM
Type: UNKNOWN
https://github.com/mochi/mochiweb/issues/92

Vulnerable Configuration:Configuration 1:
  • cpe:/a:apache:couchdb:1.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.0.1:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.0.2:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:*:*:*:*:*:*:*:* (Version <= 1.0.3)
  • OR cpe:/a:apache:couchdb:1.1.0:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.1.1:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:2.1.0:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:2.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:2.2.1:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:2.3.0:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:2.3.1:*:*:*:*:*:*:*
  • OR cpe:/a:mochiweb_project:mochiweb:*:*:*:*:*:*:*:* (Version <= 2.3.2)

  • Configuration CCN 1:
  • cpe:/a:apache:couchdb:1.0.3:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.1.1:*:*:*:*:*:*:*
  • OR cpe:/a:apache:couchdb:1.2.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.precise:def:20125641000
    V
    CVE-2012-5641 on Ubuntu 12.04 LTS (precise) - low.
    2014-03-18
    BACK
    apache couchdb 1.0.0
    apache couchdb 1.0.1
    apache couchdb 1.0.2
    apache couchdb *
    apache couchdb 1.1.0
    apache couchdb 1.1.1
    apache couchdb 1.2.0
    mochiweb_project mochiweb 2.1.0
    mochiweb_project mochiweb 2.2.0
    mochiweb_project mochiweb 2.2.1
    mochiweb_project mochiweb 2.3.0
    mochiweb_project mochiweb 2.3.1
    mochiweb_project mochiweb *
    apache couchdb 1.0.3
    apache couchdb 1.1.1
    apache couchdb 1.2.0