Skip to content
Vulnerability Intelligence

CVE-2017-12635

CriticalExploitedPublic exploit

couchdb - security update

Published Jan 21, 2018 · Updated Jul 8, 2026 · Also known as DEBIAN-CVE-2017-12635, DEBIAN-CVE-2017-12636, DLA-1252-1, UBUNTU-CVE-2017-12635

Key Facts

Patch immediately
  • CVE-2017-12635 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Couchdb (Apache).
  • It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Oct 14, 2023. Public exploit code is available.
  • EPSS estimates a 100% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Couchdb 1.7.0, Couchdb 1.2.0-5+deb7u1, Couchdb 2.1.1-1.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v3.1

9.8

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

EPSS (30-day exploit likelihood)

100%

Higher than 99.9% of all scored CVEs

Exploited in the wild

Yes

2 catalog listings

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2017-12635 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedNov 17, 2023n/aNot reported
CIRCL KEVOct 14, 2023n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

10 affected entries in total
ProductAffected versionsFixed in
CouchdbApache2.0.0, 2.0.0-rc1, 2.0.0-rc2, 2.0.0-rc3, 2.0.0-rc4, >= 1.2.0 to 1.6.11.7.0

Patched Releases

Couchdb

1.7.0, 1.2.0-5+deb7u1, 2.1.1-1

Timeline

  1. Publicly disclosed

    Jan 21, 2018

  2. Added to CIRCL KEV

    Oct 14, 2023

  3. Added to Industry KEV feed

    Nov 17, 2023

  4. Last updated

    Jul 8, 2026

Weakness Type

  • CWE-269 Improper Privilege Management

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2017-12635 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo