Upstream information

CVE-2017-12635 at MITRE

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.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v2 Scores
  National Vulnerability Database SUSE
Base Score 10 6.8
Vector AV:N/AC:L/Au:N/C:C/I:C/A:C AV:N/AC:L/Au:S/C:N/I:C/A:N
Access Vector Network Network
Access Complexity Low Low
Authentication None Single
Confidentiality Impact Complete None
Integrity Impact Complete Complete
Availability Impact Complete None
CVSS v3 Scores
  SUSE
Base Score 8.1
Vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Access Vector Network
Access Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality Impact High
Integrity Impact High
Availability Impact None
SUSE Bugzilla entry: 1068386 [NEW]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
SUSE Openstack Cloud 6 couchdb Ignore
SUSE Openstack Cloud 7 couchdb Released
SUSE Storage 3 couchdb Ignore
SUSE Storage 4 couchdb Released