CVE-2017-12635

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…

published November 14, 2017

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 100.0th percentile for exploit probability.

CVSS
—
EPSS
100%
Percentile
100.0
In the wild
Unconfirmed
What it is

⚠️ Duplicate keys in CouchDB can lead to a situation where non-admin users can grant themselves admin rights — talk about a surprising twist in your security story! 🔥 Think of it like a restaurant where a waiter can sneakily add their name to the VIP list, all because the system didn't check the reservations properly. One minute they’re just serving tables, and the next, they’re enjoying the fine dining experience they shouldn't have access to! An attacker could exploit this vulnerability to elevate their privileges to admin status, potentially allowing them to execute arbitrary commands on the server. This means they could access sensitive data, modify permissions, or even shut down the system — a real nightmare for your database security!

Put simply

Think of it like a restaurant where a waiter can sneakily add their name to the VIP list, all because the system didn't check the reservations properly. One minute they’re just serving tables, and the next, they’re enjoying the fine dining experience they shouldn't have access to! This vulnerability arises from inconsistencies between the Erlang and JavaScript JSON parsers in CouchDB, which permit the same user to have multiple 'roles' keys. While the server will use the second key for authorization during user creation, it incorrectly applies the first key for subsequent checks, bypassing intended restrictions.

What to do

An attacker could exploit this vulnerability to elevate their privileges to admin status, potentially allowing them to execute arbitrary commands on the server. This means they could access sensitive data, modify permissions, or even shut down the system — a real nightmare for your database security! To secure your CouchDB, upgrade to version 1.7.0 or 2.1.1 or later, where this issue has been addressed. Additionally, ensure strict validation of user roles in your application logic to prevent unauthorized privilege escalation. Don't forget to audit your existing users for any that may have gained unintended access! You've got this! Follow these steps and get your CouchDB locked down tight! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.99838 · 100.0th percentile
Published
2017-11-14T20:00Z
EPSS history
Timeline
  • 14 NOV 20:00Z
    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…
    cvelistv5