OS Command Injection in LibreNMS - CVE-2018-20434

 

OS Command Injection in LibreNMS - CVE-2018-20434

Published: April 24, 2019 / Updated: June 17, 2021


Vulnerability identifier: #VU35953
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-20434
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to html/pages/addhost.inc.php during creation of a new device, and then making a /ajax_output.php?id=capture&format=text&type=snmpwalk&hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.


Affected software

LibreNMS

How to mitigate CVE-2018-20434

Install update from vendor's website.


Links to Public Exploits and PoC-codes

External References

Related Security Bulletins