Description
Apache 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache CouchDB | < 1.7.2, 2.0.0 to 2.1.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | couchdb | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 8 | couchdb | 1.7.2-3.3.1 | SUSE-SU-2018:2765-1 |
| SUSE OpenStack Cloud 7 | couchdb | 1.7.2-2.8.2 | SUSE-SU-2018:2578-1 |
| SUSE Enterprise Storage 4 | couchdb | 1.7.2-2.8.2 | SUSE-SU-2018:2578-1 |
Advisories 2
- SUSE-SU-2018:2578-1 Security update for couchdb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2765-1 Security update for couchdb SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [couchdb-announce] 20180710 Apache CouchDB 2.1.2 released mailing-list
- GLSA-201812-06 vendor-advisory
- [couchdb-announce] 20180710 Apache CouchDB 1.7.2 released mailing-list
- 104741 vdb-entry
- https://www.mdsec.co.uk/2018/08/advisory-cve-2018-8007-apache-couchdb-remote-code-execution/
- https://blog.couchdb.org/2018/07/10/cve-2018-8007/
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbmu03935en_us
- FEDORA-2020-83f513fd7e vendor-advisory
- FEDORA-2020-73bd8167a0 vendor-advisory