UBUNTU-CVE-2017-12635

Source
https://ubuntu.com/security/CVE-2017-12635
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12635.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2017-12635
Related
Published
2017-11-14T20:29:00Z
Modified
2025-01-13T10:21:25Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / couchdb

Package

Name
couchdb
Purl
pkg:deb/ubuntu/couchdb@1.6.0-0ubuntu7?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.6.0-0ubuntu7

Ecosystem specific

{
    "ubuntu_priority": "medium"
}