OS command injection in CouchDB - CVE-2017-12636
Published: August 13, 2018 / Updated: June 17, 2021
Vulnerability details
The vulnerability allows a remote administrative attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can configure the database server via HTTP(S) that include(s) paths for operating system-level binaries that are subsequently launched by CouchDB to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
Arch Linux
Gentoo Linux
Fedora
erlang-jiffy
couchdb
How to mitigate CVE-2017-12636
erlang-jiffy - addressed in versions 0.14.13-1.fc26, 0.14.13-1.fc27
couchdb - addressed in versions 1.7.1-3.fc26, 1.7.1-3.fc27
Links to Public Exploits and PoC-codes
- Exploit #6295 - Apache CouchDB - Arbitrary Command Execution (Metasploit) (June 17, 2021)
- Exploit #6196 - Apache CouchDB < 2.1.0 - Remote Code Execution (June 17, 2021)
- Exploit #2228 - CVE-2017-12636 (CVE-2017-12636|exploit Couchdb ) (March 23, 2020)
- Exploit #1844 - Apache CouchDB Arbitrary Command Execution (March 18, 2020)