10

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

Modified
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.

Priority
Prioritiseweaponized exploit

Weaponized exploit (exploit-database, 13-07-2018)

Source freshness unavailable

How is this decided?
CVSS score
10.0/10
010
High · v2.0 (NVD)
EPSS score
99.84%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits4exploit-database, metasploit

Advisory lineage

Upstream 0 · Downstream 2 · Related 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

No change 0.00 pp

From 99.84% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

4 found
  • exploit-databaseremotelinuxVerified

    Apache CouchDB < 1.7.0 / < 2.1.1 - Arbitrary Command Execution (Metasploit)

    Maturity: weaponized

  • exploit-databaselinuxUnverified

    Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Unauthenticated 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

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Apache1 product
  • couchdbEOL< 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) | < 1.6.0-0ubuntu7+esm1

3 vendors · 3 products

References

12 links
Show all 12 references