CVE-2018-20434: OS Command Injection
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 /ajaxoutput.php?id=capture&format=text&type=snmpwalk&hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.
Other sources
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 /ajaxoutput.php?id=capture&format=text&type=snmpwalk&hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2018-20434?
CVE-2018-20434 is a vulnerability in LibreNMS 1.46 that allows remote attackers to execute arbitrary OS commands.
How does CVE-2018-20434 work?
CVE-2018-20434 works by using the $_POST['community'] parameter to execute arbitrary OS commands during the creation of a new device in LibreNMS 1.46.
What is the severity of CVE-2018-20434?
The severity of CVE-2018-20434 is critical with a CVSS score of 9.8.
How can I fix CVE-2018-20434?
To fix CVE-2018-20434, you should upgrade to a version of LibreNMS that is not affected by this vulnerability.
Are there any references for CVE-2018-20434?
Yes, you can find references for CVE-2018-20434 at the following links: http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html, http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html, and https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing.