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: 6.4 [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]
CVE-ID: CVE-2017-12636
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available

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

CouchDB
Arch Linux
Gentoo Linux
Fedora
erlang-jiffy
couchdb

How to mitigate CVE-2017-12636

Update to version 1.7.0 or 2.1.1.

CouchDB - addressed in versions 1.7.0, 2.1.1
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

External References

Related Security Bulletins