Vulnerabilities · 2018 · Librenms
CVE-2018-20434
Librenms vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Librenms. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Librenms runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing · Third Party Advisory
- gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d · Exploit
- shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/ · Exploit
- packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html
- packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html
- nvd.nist.gov/vuln/detail/CVE-2018-20434
- shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434
- github.com/advisories/GHSA-62q7-qj6g-gvr7
- nvd.nist.gov/vuln/detail/CVE-2018-20434
- cve.org/CVERecord?id=CVE-2018-20434
More vulnerabilities in Librenms products
CVE-2025-68614CVE-2025-65093CVE-2025-65014CVE-2025-65013CVE-2025-62412CVE-2025-62411CVE-2025-62365CVE-2025-55296All 94
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.