Overview
- 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.
- Source
- security@apache.org
- NVD status
- Modified
Risk scores
CVSS 3.0
- Type
- Primary
- Base score
- 9.8
- Impact score
- 5.9
- Exploitability score
- 3.9
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity
- CRITICAL
CVSS 2.0
- Type
- Primary
- Base score
- 10
- Impact score
- 10
- Exploitability score
- 10
- Vector string
- AV:N/AC:L/Au:N/C:C/I:C/A:C
Weaknesses
- nvd@nist.gov
- CWE-269
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "DCEE0A7F-2D9E-4B71-AB1D-F7E51FAF8839", "versionEndExcluding": "1.7.0" }, { "criteria": "cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "7C28D397-7FB6-472F-A602-C2E7E4CCC7D9" }, { "criteria": "cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "20694545-A117-4327-9704-E4E9C26C0A10" }, { "criteria": "cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "53337458-D551-42E3-825D-1E94AB8409D3" }, { "criteria": "cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "C6848350-0CDC-4CB1-B6DB-1A47227F10AF" }, { "criteria": "cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "2A820A52-9170-4E32-B224-1C9E7F48A6D2" } ], "operator": "OR" } ] } ]