CVE-2017-12635
Reported by apache · Published November 14, 2017
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
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache CouchDB | 1.2.0 to 1.6.1, 2.0.0 to 2.1.0 |
| Apache Software Foundation | Apache CouchDB | 1.2.0, 2.0.0 |
| arch | couchdb | 0 |
Timeline
- Nov 14, 2017 CVE Published
- Nov 30, 2017 PoC Published (154 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 17, 2023 VulnCheck KEV Exploitation (842 in total, the first dated here)
- Nov 26, 2024 VulnCheck XDB Entry (5 in total, the first dated here)
- Apr 7, 2026 Security Advisory (2 in total, the first dated here)
- Oct 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-12635
vulnetix vdb fixes CVE-2017-12635
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-12635/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 44498 exploitx_refsource_EXPLOIT-DB
- 45019 exploitx_refsource_EXPLOIT-DB
- [dev] 20171114 Apache CouchDB CVE-2017-12635 and CVE-2017-12636 mailing-listx_refsource_MLIST
- GLSA-201711-16 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20180121 [SECURITY] [DLA 1252-1] couchdb security update mailing-listx_refsource_MLIST
- 101868 vdb-entryx_refsource_BID
- x_refsource_CONFIRM