OS command injection in Apache CouchDB
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache CouchDB | 1.2.0 to 1.6.1; 2.0.0 to 2.1.0 | — | No fix listed | CNA |
- Apache CouchDB VendorApache Affected 1.2.0 to 1.6.1; 2.0.0 to 2.1.0 Fixed in — No fix listed CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:* | before 1.7.0 | Vulnerable | Apache |
| cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:* | 2.0.0 | Vulnerable | Apache |
| cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:* | 2.0.0 rc1 | Vulnerable | Apache |
| cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:* | 2.0.0 rc2 | Vulnerable | Apache |
| cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:* | 2.0.0 rc3 | Vulnerable | Apache |
| cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:* | 2.0.0 rc4 | Vulnerable | Apache |
- cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:* Versions before 1.7.0 Vulnerable ·Apache
- cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·Apache
- cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:* Versions 2.0.0 rc1 Vulnerable ·Apache
- cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:* Versions 2.0.0 rc2 Vulnerable ·Apache
- cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:* Versions 2.0.0 rc3 Vulnerable ·Apache
- cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:* Versions 2.0.0 rc4 Vulnerable ·Apache
Remediation
No fixed version listed by the sources yet.
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Apache CouchDB — GLSA-201711-16
2 records Highest priority Priority CRITICAL 1 CRITICAL, 1 HIGH
Other records, highest priority first
- TI-2017-09360 Improper privilege management in Apache CouchDBPriority CRITICAL 87
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2017-12636
- 2026-10-03 Alias added: GHSA-fcpq-cj4x-h8mv
References
More Apache Couchdb vulnerabilities
- TI-2022-08521 Remote Code Execution Vulnerability in Packaging KEVCVSS 3.1CRITICAL 9.8
- TI-2017-09360 Improper privilege management in Apache CouchDB CVSS 3.0CRITICAL 9.8
- TI-2020-01879 Missing authentication in Apache CouchDB CVSS 3.1CRITICAL 9.8
- TI-2018-05784 Improper input validation in Apache CouchDB CVSS 3.0HIGH 7.2
- TI-2018-08426 CouchDB administrative users before 2.2.0 can configure the database server via HTTP(S). CVSS 3.0HIGH 7.2
- TI-2014-02145 Apache CouchDB 1.5.0 and earlier allows remote attackers to cause a denial of service… CVSS 2.0MEDIUM 5.0
Sources
- CVE-2017-12636 · CVE Program
- CVE-2017-12636 · NVD
- FIRST EPSS
- GHSA-fcpq-cj4x-h8mv · GitHub Advisory Database · CC BY 4.0
- CVE-2017-12636 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences