OS command injection in CouchDB - CVE-2017-12636

 

OS command injection in CouchDB - CVE-2017-12636

Published: August 13, 2018 / Updated: June 17, 2021


Vulnerability identifier: #VU14324
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:A/U:Amber
CVE-ID: CVE-2017-12636
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Apache Foundation
Affected software:
CouchDB

Detailed vulnerability description

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.


How to mitigate CVE-2017-12636

Update to version 1.7.0 or 2.1.1.

Sources