CVE-2018-20434: OS Command Injection

Published Apr 24, 2019
·
Updated

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

2 affected components
composer/librenms/librenms=1.46
librenms librenms=1.46

Event History

Apr 24, 2019
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
Description
May 24, 2022
Advisory Published
via GitHub·04:44 PM

Frequently Asked Questions

1

What is CVE-2018-20434?

CVE-2018-20434 is a vulnerability in LibreNMS 1.46 that allows remote attackers to execute arbitrary OS commands.

2

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.

3

What is the severity of CVE-2018-20434?

The severity of CVE-2018-20434 is critical with a CVSS score of 9.8.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203