10

CVE-2017-12635: apache software foundation apache couchdb Improper Privilege Management

CVSS: 10.0v2.0HighModified
AliasesUBUNTU-CVE-2017-12635
Published 14-11-2017Last modified 17-09-2024

Vulnerability summary

CVE-2017-12635 is a high (CVSS 10.0) Improper Privilege Management vulnerability in apache software foundation apache couchdb. EPSS estimates a 99.84% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 4 public exploits are recorded.

Overall risk
90/100
0100
Critical · default modelHow is this calculated?
CVSS score
10.0/10
010
High · v2.0 (NVD)
EPSS score
99.84%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits4exploit-database, metasploit

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 14-11-2017
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

99.84%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 99.84% on 18-09-2026

18-09-202618-10-2026
EPSS score
99.84%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

4 found
  • exploit-databaseremotelinuxVerified

    Apache CouchDB - Arbitrary Command Execution (Metasploit)

    Maturity: weaponized

  • exploit-databaselinuxUnverified

    Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Remote Privilege Escalation

    Maturity: poc

  • MetasploitMetasploitremoteUnverified

    CouchDB Enum Utility

    auxiliary/scanner/couchdb/couchdb_enum

    Maturity: poc

Show all 4 exploits
  • MetasploitMetasploitremoteVerified

    Apache CouchDB Arbitrary Command Execution

    exploit/linux/http/apache_couchdb_cmd_exec

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Apache1 product
  • couchdb< 1.7.0 | 2.0.0 | 2.0.0:rc1 | 2.0.0:rc2 | 2.0.0:rc3 | 2.0.0:rc4
Apache software foundation1 product
Ubuntu1 product
  • couchdbAll versions (No fix recorded)

3 vendors · 3 products

References

11 links
Show all 11 references