Vulnerability Details : CVE-2017-12635
Public exploit exists!
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.
Vulnerability category: Execute code
Products affected by CVE-2017-12635
- cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:*
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-26auxiliary/scanner/couchdb/couchdb_enumThis 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-06First seen: 2020-04-26exploit/linux/http/apache_couchdb_cmd_execCouchDB 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
-
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbmu03935en_us
HPESBMU03935 rev.1 - HPE Unified OSS Console Software Products using Apache CouchDB, Remote Code Execution, Remote Escalation of Privilege
-
https://www.exploit-db.com/exploits/44498/
Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Remote Privilege Escalation
-
https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67@%3Cdev.couchdb.apache.org%3E
Apache CouchDB CVE-2017-12635 and CVE-2017-12636 - Pony MailMailing List;Vendor Advisory
-
https://security.gentoo.org/glsa/201711-16
CouchDB: Multiple vulnerabilities (GLSA 201711-16) — Gentoo securityThird Party Advisory
-
http://www.securityfocus.com/bid/101868
Apache CouchDB CVE-2017-12635 Remote Privilege Escalation VulnerabilityThird Party Advisory;VDB Entry
-
https://www.exploit-db.com/exploits/45019/
Apache CouchDB - Arbitrary Command Execution (Metasploit)
-
https://lists.debian.org/debian-lts-announce/2018/01/msg00026.html
[SECURITY] [DLA 1252-1] couchdb security update
Jump to