CVE-2017-12636 in apache couchdb
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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 software: apache couchdb
Scores
- CVSS: 7.2 (high)
- EPSS: 90.60% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2017-11-14
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Update Apache CouchDB to 1.7.0, 2.1.1 or later
Patch or upgrade. CouchDB before 1.7.0 and 2.x before 2.1.1 let an admin set operating system commands in the configuration over HTTP, and CVE-2017-12635 lets anyone become admin. The fixed versions block these settings over HTTP.
Applies to: Apache CouchDB before 1.7.0 and 2.x before 2.1.1.
- Check the CouchDB version with GET / on the CouchDB port.
- Update to 1.7.0 or later on the 1.x line, or 2.1.1 or later on 2.x (a current 3.x release is preferred), and restart CouchDB.
- Make sure the CouchDB port (5984) is not reachable from the internet and that admin party mode is off.
- Check the query_servers section in the configuration for commands you did not set and remove them.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.