CRITICAL9.8
GHSA-62q7-qj6g-gvr7
LibreNMS arbitrary OS commands execution
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/librenms/librenms
No fixed version published yet for librenms/librenms (composer). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-20434[ADVISORY]
- https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing[WEB]
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d[WEB]
- https://github.com/librenms/librenms[PACKAGE]
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434[WEB]