CVE-2017-12635

Scores

EPSS

0.942high94.2%
0%20%40%60%80%100%

Percentile: 94.2%

CVSS

9.8critical3.x
0246810

CVSS Score: 9.8/10

All CVSS Scores

CVSS 3.x
9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS 2.0
10.0

Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C

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.

Scaner-VS 7 — a modern vulnerability management solution

Uses this database for vulnerability detection. High-speed search, cross-platform, advanced configuration audit, and flexible filtering. Suitable for organizations of any size.
Learn more about Scaner-VS 7

Sources

debiannvdubuntu

CWEs

CWE-269

Related Vulnerabilities

Exploits

Exploit ID: 44498

Source: exploitdb

URL: https://www.exploit-db.com/exploits/44498

Exploit ID: 45019

Source: exploitdb

URL: https://www.exploit-db.com/exploits/45019

Exploit ID: CVE-2017-12635

Source: github-poc

URL: https://github.com/cyberharsh/Apache-couchdb-CVE-2017-12635

Vulnerable Software (6)

Type: Configuration

Product: couchdb

Operating System: debian

Trait:
{  "unfixed": true}

Source: debian

Type: Configuration

Product: couchdb

Operating System: ubuntu artful 17.10

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: couchdb

Operating System: ubuntu trusty 14.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: couchdb

Operating System: ubuntu xenial 16.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Product: couchdb

Operating System: ubuntu zesty 17.04

Trait:
{  "unfixed": true}

Source: ubuntu

Type: Configuration

Vendor: *

Product: couchdb

Operating System: * * *

Trait:
{  "cpe_match": [    {      "cpe23uri": "cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*",      "versionEndExcluding": "1.7.0",      "vulnerable": true    },    {      "cpe23uri": "cpe:2.3:a:apache:c...

Source: nvd

End of list