CVE-2017-12636 — couchdb
HIGHCVE-2017-12636 is a high-severity (CVSS 7.2) OS Command Injection vulnerability. 7 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
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.
Affected Products
couchdbapacheResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache CouchDB - Arbitrary Command Execution (Metasploit)
by Metasploit · Jul 13, 2018
Apache CouchDB < 2.1.0 - Remote Code Execution
by Cody Zacharias · Jun 20, 2018
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for CVE-2017-12636, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2017-12636
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2017-12636 -u https://target- Template
- Apache CouchDB < 1.7.0 / 2.x < 2.1.1 - Query Server Remote Code Execution
- Severity
- high
- Impact
- Remote attackers can execute arbitrary operating system commands with the privileges of the CouchDB service account, leading to full system compromise.
- Remediation
- Upgrade Apache CouchDB to version 1.7.0 / 2.1.1 or later.
Template by ProjectDiscovery nuclei-templates (DhiyaneshDk), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2017-12636 in your dependencies?
Find it across your dependency tree, including transitive dependencies.