GHSA-62q7-qj6g-gvr7critical9.8
LibreNMS arbitrary OS commands execution
The advisory, in context
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 packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
librenms/librenms Packagist
1 explicitly affected versions
1.46
View affected-version evidence
{
"ranges": [],
"versions": [
"1.46"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2018-20434
- https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d
- https://github.com/librenms/librenms
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434