RCE in Librenms
CVE-2018-20434
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.715 (99.4th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.715 · newest: 0.715 · change: 0.000
Affected products
- Librenms — versions 1.46
Weakness classification (CWE)
Public proof-of-concept exploits
References
- gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d (Exploit, Third Party Advisory)
- drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view (Permissions Required, Third Party Advisory)
- shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/ (Technical Description, Exploit, Third Party Advisory)
- packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html
- packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Executio…
Frequently asked questions
- What is CVE-2018-20434?
- CVE-2018-20434 is a critical-severity vulnerability in Librenms, classified under OS Command Injection. CVSS score: 9.8/10. Published 2019-04-24.
- How severe is CVE-2018-20434?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2018-20434 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.