Bug 1516979 (CVE-2017-12635) - CVE-2017-12635 couchdb: Privilege escalation via _users documents with duplicate keys for 'roles'
Summary: CVE-2017-12635 couchdb: Privilege escalation via _users documents with duplic...
Alias: CVE-2017-12635
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1516981
TreeView+ depends on / blocked
Reported: 2017-11-23 18:41 UTC by Pedro Sampaio
Modified: 2019-09-29 14:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-06-08 03:31:57 UTC

Attachments (Terms of Use)

Description Pedro Sampaio 2017-11-23 18:41:22 UTC
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. 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.



Comment 1 Pedro Sampaio 2017-11-23 18:51:22 UTC
Created couchdb tracking bugs for this issue:

Affects: fedora-all [bug 1516981]

Comment 2 Product Security DevOps Team 2019-06-08 03:31:57 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Note You need to log in before you can comment on or make changes to this bug.