Due to differences in the Erlang-based JSON parser and JavaScript-based JSON parser, it is possible in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to submit _users documents with duplicate keys for 'roles' used for access control within the database, including the special case '_admin' role, that denotes administrative users. In combination with CVE-2017-12636 (Remote Code Execution), this can be used to give non-admin users access to arbitrary shell commands on the server as the database system user. The JSON parser differences result in behaviour that if two 'roles' keys are available in the JSON, the second one will be used for authorising the document write, but the first 'roles' key is used for subsequent authorization for the newly created user. By design, users can not assign themselves roles. The vulnerability allows non-admin users to give themselves admin privileges.
Published 2017-11-14 20:29:00
Updated 2019-10-03 00:03:26
View at NVD,   CVE.org
Vulnerability category: Execute code

Products affected by CVE-2017-12635

Threat overview for CVE-2017-12635

Top countries where our scanners detected CVE-2017-12635
Top open port discovered on systems with this issue 80
IPs affected by CVE-2017-12635 9
Threat actors abusing to this issue? Yes
Find out if you* are affected by CVE-2017-12635!
*Directly or indirectly through your vendors, service providers and 3rd parties. Powered by attack surface intelligence from SecurityScorecard.

Exploit prediction scoring system (EPSS) score for CVE-2017-12635

97.19%
Probability of exploitation activity in the next 30 days EPSS Score History
~ 100 %
Percentile, the proportion of vulnerabilities that are scored at or less

Metasploit modules for CVE-2017-12635

  • CouchDB Enum Utility
    First seen: 2020-04-26
    auxiliary/scanner/couchdb/couchdb_enum
    This module enumerates databases on CouchDB using the REST API (without authentication by default). Authors: - Max Justicz - Roberto Soares Espreto <robertoespreto@gmail.com> - Hendrik Van Belleghem - Green-m <greenm.xxoo@gmail.com>
  • Apache CouchDB Arbitrary Command Execution
    Disclosure Date: 2016-04-06
    First seen: 2020-04-26
    exploit/linux/http/apache_couchdb_cmd_exec
    CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before

CVSS scores for CVE-2017-12635

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source First Seen
10.0
HIGH AV:N/AC:L/Au:N/C:C/I:C/A:C
10.0
10.0
NIST
9.8
CRITICAL CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.9
5.9
NIST

CWE ids for CVE-2017-12635

  • The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
    Assigned by: nvd@nist.gov (Primary)

References for CVE-2017-12635

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!