CVE-2017-12635: apache software foundation apache couchdb Improper Privilege Management
Vulnerability summary
CVE-2017-12635 is a high (CVSS 10.0) Improper Privilege Management vulnerability in apache software foundation apache couchdb. EPSS estimates a 99.84% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 4 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 14-11-2017PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
99.84%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 99.84% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
4 foundApache CouchDB - Arbitrary Command Execution (Metasploit)
Maturity: weaponized
Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Remote Privilege Escalation
Maturity: poc
CouchDB Enum Utility
auxiliary/scanner/couchdb/couchdb_enum
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Apache1 product
- couchdb< 1.7.0 | 2.0.0 | 2.0.0:rc1 | 2.0.0:rc2 | 2.0.0:rc3 | 2.0.0:rc4
Apache software foundation1 product
- apache couchdb1.2.0 to 1.6.1 | 2.0.0 to 2.1.0
Ubuntu1 product
- couchdbAll versions (No fix recorded)
3 vendors · 3 products