Sploitus

CVE-2017-12635

23 known exploits for 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.

Affected products
Apache Couchdb
Apache Couchdb
< 1.7.0, 2.0.0
Fix
Available
CVSS 2.0
10.0 HIGH
CVSS 3.1
9.8 CRITICAL
EPSS
99.8% (100th percentile)
Weakness
CWE-269
NVD status
Modified
Published
2017-11-14
CVE-2017-12635 at NVD
Authoritative description, scoring and affected products

23 known exploits for CVE-2017-12635

Proof-of-concept code and exploit modules indexed by Sploitus

Exploit for Improper Privilege Management in Apache Couchdb
2026-08-03 DarabiumGITHUB
Exploit for Improper Privilege Management in Apache Couchdb
2026-08-03 DarabiumGITHUB
Exploit for Improper Privilege Management in Apache Couchdb
2026-05-29 DungsocoolGITHUB
CouchDB Enum Utility
2024-08-31 Roberto S. Soares, Max Justicz, Green-m, Hendrik Van Belleghem, metasploit.comPACKETSTORMRuby
Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat
2021-10-22 王先生GITEE
Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat
2021-05-16 nullGITEE
Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat
2021-04-27 嗯个GITEE
Apache #CouchDB Arbitrary Command Execution Exploit
2018-07-13 metasploitZDTRuby
Apache CouchDB - Arbitrary Command Execution (Metasploit)
2018-07-13 MetasploitEXPLOITDBRuby
Apache CouchDB Arbitrary Command Execution
2018-07-12 Max JusticzPACKETSTORMRuby
Apache CouchDB Remote Code Execution
2018-06-21 Cody ZachariasPACKETSTORMPython
Apache CouchDB < 2.1.0 - Remote Code Execution Exploit
2018-06-20 Cody ZachariasZDTPython
Apache CouchDB 2.1.0 - Remote Code Execution
2018-06-20 Cody ZachariasEXPLOITPACKPython
Apache CouchDB < 2.1.0 - Remote Code Execution
2018-06-20 Cody ZachariasEXPLOITDBPython
Apache CouchDB 1.7.0 and 2.x before 2.1.1 - Remote Privilege Escalation Exploit
2018-04-23 r4wd3rZDTPython
Apache CouchDB 1.7.0 2.x 2.1.1 - Remote Privilege Escalation
2018-04-23 r4wd3rEXPLOITPACKPython
Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Remote Privilege Escalation
2018-04-23 r4wd3rEXPLOITDBPython
Apache CouchDB 1.7.0 / 2.x Remote Privilege Escalation
2018-04-23 Sebastian CastroPACKETSTORMPython
Apache CouchDB Arbitrary Command Execution
2018-03-27 Max Justicz, Joan Touzet, Green-m <greenm.xxoo@gmail.com>METASPLOITRuby
Apache CouchDB Remote Code Execution Vulnerability
2017-11-30 Max JusticzZDT
Remote Code Execution in CouchDB(CVE-2017-12635)
2017-11-16 RootSEEBUG
Immunity Canvas: COUCHDB_ROLES
2017-11-14 Immunity CanvasCANVAS
CouchDB Enum Utility
2013-05-11 Max Justicz, Roberto Soares Espreto <robertoespreto@gmail.com>, Hendrik Van Belleghem, Green-m <greenm.xxoo@gmail.com>METASPLOITRuby