Apache CouchDB CVE-2018-8007

Overview of CVE-2018-8007

CouchDB administrative users can configure the database server via HTTP(S). Due to insufficient validation of administrator-supplied configuration settings via the HTTP API, it is possible for a CouchDB administrator user to escalate their privileges to that of the operating system’s user that CouchDB runs under, by bypassing the blacklist of configuration settings that are not allowed to be modified via the HTTP API.

This privilege escalation effectively allows an existing CouchDB admin user to gain arbitrary remote code execution, bypassing already disclosed CVE-2017-12636

Mitigation

All users should upgrade to CouchDB releases 1.7.2 or 2.1.2.

Upgrades from previous 1.x and 2.x versions in the same series should be
seamless.

Users on earlier versions, or users upgrading from 1.x to 2.x should consult
with upgrade notes.

Credit

This issue was discovered by Francesco Oddo of MDSec Labs. The CouchDB PMC gratefully acknowledges their support in responsibly disclosing this vulnerability.

Apache CouchDB 1.6.1 Released

Apache CouchDB 1.6.1 has been released and is available for download.

CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents with your web browser, via HTTP. Query, combine, and transform your documents with JavaScript. CouchDB works well with modern web and mobile apps. You can even serve web apps directly out of CouchDB. And you can distribute your data, or your apps, efficiently using CouchDB’s incremental replication. CouchDB supports master-master setups with automatic conflict detection.

Grab your copy here:

http://couchdb.apache.org/

Pre-built packages for Windows and Ubuntu are available, OS X is on the way.

CouchDB 1.6.1 is a patch release, and was originally published on 2014-09-03.

These release notes are based on the changelog.

Upgrade Notes

Version 1.6.1 contains important patches to hash of passwords on restart. The previous Version 1.6.0 release is not recommended for usage as certain edge cases with admin passwords may prevent CouchDB from starting.

A bugfix release to handle various edge cases related to admin password hashing.

What’s New