patchminder
Weaponized · Metasploit CVE-2017-12635

Remote code executionin Apache CouchDB.

Published 14 Nov 2017 · Updated 17 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.8% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

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.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.

Not confirmed by any source yet: fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache CouchDB
1.2.0 to 1.6.1
Not confirmed
CVE record
Apache CouchDB
2.0.0 to 2.1.0
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 7 Aug 2017
    CVE ID reserved by apache.
  2. 14 Nov 2017
    Published in the CVE List.
  3. 7 Nov 2019
    First public proof of concept on GitHub.
  4. 17 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
2 modules
Nuclei scan template
Available
Exploit-DB
3 entries
GitHub proof of concepts
6 repositories
MetasploitCouchDB Enum Utilityrank normalLinked once a fix or workaround is known.
MetasploitApache CouchDB Arbitrary Command Executionrank excellentLinked once a fix or workaround is known.
NucleiApache CouchDB 1.7.0 / 2.x < 2.1.1 · Remote Privilege Escalationdetection templateLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45019remote exploit for linux, published 13 Jul 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45019remote exploit for linux, published 13 Jul 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 44498web application exploit for linux, published 23 Apr 2018Linked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.

6 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other CouchDB vulnerabilities

References
Cite this page

Patchminder. CVE-2017-12635: Remote code execution in Apache CouchDB. https://patchminder.com/cve/cve-2017-12635/ (accessed 5 December 2026).