CVE-2017-12635

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-12635
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12635.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-12635
Related
Published
2017-11-14T20:29:00Z
Modified
2025-01-14T07:02:57.127491Z
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

Git / github.com/apache/couchdb

Affected ranges

Type
GIT
Repo
https://github.com/apache/couchdb
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.6.0
1.6.1

Other

fauxton