CVE-2017-12635
Scores
EPSS
Percentile: 94.2%
CVSS
CVSS Score: 9.8/10
All CVSS Scores
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vector Breakdown
CVSS (Common Vulnerability Scoring System) vector provides detailed metrics about vulnerability characteristics
CVSS
Attack Vector
Network (N)
Describes how the vulnerability is exploited
Attack Complexity
Low (L)
Describes the conditions beyond the attacker's control
Privileges Required
None (N)
Describes the level of privileges an attacker must possess
User Interaction
None (N)
Captures the requirement for a human user participation
Scope
Unchanged (U)
Determines if a successful attack impacts components beyond the vulnerable component
Confidentiality Impact
High (H)
Measures the impact to the confidentiality of information
Integrity Impact
High (H)
Measures the impact to integrity of a successfully exploited vulnerability
Availability Impact
High (H)
Measures the impact to the availability of the impacted component
Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C
Vector Breakdown
CVSS (Common Vulnerability Scoring System) vector provides detailed metrics about vulnerability characteristics
CVSS
Attack Vector
Network (N)
Describes how the vulnerability is exploited
Attack Complexity
Low (L)
Describes the conditions beyond the attacker's control
Authentication
None (N)
Describes the level of privileges an attacker must possess
Confidentiality Impact
Complete
Measures the impact to the confidentiality of information
Integrity Impact
Complete
Measures the impact to integrity of a successfully exploited vulnerability
Availability Impact
Complete
Measures the impact to the availability of the impacted component
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
Sources
CWEs
Related Vulnerabilities
Exploits
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
{ "unfixed": true}
Source: debian
Type: Configuration
Product: couchdb
Operating System: ubuntu artful 17.10
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: couchdb
Operating System: ubuntu trusty 14.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: couchdb
Operating System: ubuntu xenial 16.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Product: couchdb
Operating System: ubuntu zesty 17.04
{ "unfixed": true}
Source: ubuntu
Type: Configuration
Vendor: *
Product: couchdb
Operating System: * * *
{ "cpe_match": [ { "cpe23uri": "cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.7.0", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:c...
{ "cpe_match": [ { "cpe23uri": "cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.7.0", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:*", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:*", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:*", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:*", "vulnerable": true }, { "cpe23uri": "cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:*", "vulnerable": true } ], "operator": "OR"}
Source: nvd