← Vulnerability feed

Vulnerability record · CVE-2017-12636 · published 14 November 2017

CVE-2017-12636: Apache CouchDB admin config allows OS command injection

Apache · Couchdb

Apache CouchDB lets administrative users set configuration options, including paths to operating system binaries that CouchDB later launches. Because those values are not safely handled, an admin can point them at arbitrary commands, resulting in OS command injection. The flaw affects CouchDB before 1.7.0 and 2.x before 2.1.1.

7.2 CVSS 3.0 High EPSS 90% · top 0.2% CWE-78 · OS command injection
7.2CVSS 3.0 base score, v2 9.0
90%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
12References
17 Jun 2026Last modified by NVD

Description

CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityThe flaw gives admin-level attackers remote command execution with a very high EPSS score and public exploit code, though it requires existing admin credentials and is not in KEV.

What it is

Apache CouchDB lets administrative users set configuration options, including paths to operating system binaries that CouchDB later launches. Because those values are not safely handled, an admin can point them at arbitrary commands, resulting in OS command injection. The flaw affects CouchDB before 1.7.0 and 2.x before 2.1.1.

Impact

An attacker with admin access gains arbitrary shell command execution as the CouchDB service account, including the ability to download and run scripts from the internet. This can lead to full compromise of the host and any data reachable by that account.

Attack surface

Reachable over the network via the CouchDB HTTP(S) administrative interface, as reflected in the CVSS vector AV:N. Exploitation requires high privileges (PR:H) and no user interaction (UI:N), so the attacker must already hold CouchDB admin credentials.

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.8973 (99.78th percentile), and public exploit code exists in Exploit-DB (44913, 45019). No ransomware group use is documented in the record.

What to do

  • Upgrade to CouchDB 1.7.0 or 2.1.1 (or later) to remove the vulnerable configuration behavior.
  • Restrict network access to the CouchDB admin interface; do not expose port 5984 or the admin API to untrusted networks.
  • Rotate and tightly control CouchDB admin credentials, and audit which accounts hold admin rights.
  • Run CouchDB under a low-privilege service account with no unnecessary filesystem or network reach.
  • Monitor and lock down configuration changes that reference external binaries or script paths.

Detection

  • Alert on CouchDB configuration changes that set binary or script paths, especially via the admin HTTP API.
  • Monitor for child processes spawned by the CouchDB service account, particularly shells or download utilities.
  • Watch for outbound network connections from the CouchDB host to unfamiliar internet hosts.
  • Review CouchDB logs for admin API calls that modify configuration values.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2017-12636 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-24706Apache CouchDB default install allows unauthenticated admin accessApache CouchDB before 3.2.2 ships with an insecure default initialization that lets an unauthenticated attacker reach an improperly secured installat…KEVEPSS 93%analysed9.8CVE-2020-1955Apache couchdb missing authentication for critical function vulnerabilityCouchDB version 3.0.0 shipped with a new configuration setting that governs access control to the entire database server called `require_valid_user_e…EPSS 1.8%9.8CVE-2017-12635Apache CouchDB privilege escalation via duplicate JSON roles keysApache CouchDB before 1.7.0 and 2.x before 2.1.1 parses JSON differently in its Erlang and JavaScript layers, so a _users document containing duplica…EPSS 100%analysed7.8CVE-2018-14889Apache couchdb improper input validation vulnerabilityCouchDB in Vectra Networks Cognito Brain and Sensor before 4.3 contains a local code execution vulnerability.EPSS 0.56%7.8CVE-2016-8742Apache couchdb permissions and access controls vulnerabilityThe Windows installer that the Apache CouchDB team provides was vulnerable to local privilege escalation. All files in the install inherit the file p…EPSS 2.0%7.3CVE-2021-38295Apache couchdb cross-site scripting vulnerabilityIn Apache CouchDB, a malicious user with permission to create documents in a database is able to attach a HTML attachment to a document. If a CouchDB…EPSS 2.5%7.2CVE-2018-17188Apache couchdb vulnerabilityPrior to CouchDB version 2.3.0, CouchDB allowed for runtime-configuration of key components of the database. In some cases, this lead to vulnerabilit…EPSS 3.2%7.2CVE-2018-11769Apache couchdb vulnerabilityCouchDB administrative users before 2.2.0 can configure the database server via HTTP(S). Due to insufficient validation of administrator-supplied con…EPSS 8.2%

Source: NIST National Vulnerability Database (record CVE-2017-12636), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.