CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
  Take a third party risk management course for FREE
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2017-12635

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.
Publish Date : 2017-11-14 Last Update Date : 2019-10-03
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
10.0
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 269

- Products Affected By CVE-2017-12635

# Product Type Vendor Product Version Update Edition Language
1 Application Apache Couchdb * * * * Version Details Vulnerabilities
2 Application Apache Couchdb 2.0.0 RC3 * * Version Details Vulnerabilities
3 Application Apache Couchdb 2.0.0 RC4 * * Version Details Vulnerabilities
4 Application Apache Couchdb 2.0.0 * * * Version Details Vulnerabilities
5 Application Apache Couchdb 2.0.0 RC1 * * Version Details Vulnerabilities
6 Application Apache Couchdb 2.0.0 RC2 * * Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Apache Couchdb 6

- References For CVE-2017-12635

https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbmu03935en_us CONFIRM
https://security.gentoo.org/glsa/201711-16
GENTOO GLSA-201711-16
https://www.exploit-db.com/exploits/45019/
EXPLOIT-DB 45019
https://lists.apache.org/thread.html/[email protected]%3Cdev.couchdb.apache.org%3E
MLIST [dev] 20171114 Apache CouchDB CVE-2017-12635 and CVE-2017-12636
https://lists.debian.org/debian-lts-announce/2018/01/msg00026.html
MLIST [debian-lts-announce] 20180121 [SECURITY] [DLA 1252-1] couchdb security update
https://www.exploit-db.com/exploits/44498/
EXPLOIT-DB 44498
http://www.securityfocus.com/bid/101868
BID 101868 Apache CouchDB CVE-2017-12635 Remote Privilege Escalation Vulnerability Release Date:2017-11-27

- Metasploit Modules Related To CVE-2017-12635

There are not any metasploit modules related to this CVE entry (Please visit www.metasploit.com for more information)


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.