CVE-2018-20434 EXPLOIT
9.8
CRITICAL · CVSS 3.0 · EPSS 71.5% (pctl 99)
Patch early
A public exploit exists.
Description
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.
Scoring
| CVSS | 9.8 (CRITICAL, v3.0) |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| EPSS | 71.49% — more likely to be exploited than 99% of all CVEs |
| Weakness | CWE-78 |
| On CISA KEV | no |
| Public exploit | yes |
| Published | 2019-04-24 |
| Last modified | 2026-06-17 |
Affected (1)
| Vendor | Product |
|---|---|
| librenms | librenms |
Public exploits
| Source | Title | Date |
|---|---|---|
| exploit-db | LibreNMS 1.46 - 'addhost' Remote Code Execution | 2019-06-28 |
| exploit-db | LibreNMS - addhost Command Injection (Metasploit) | 2019-06-05 |
References
- http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html
- http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html
- https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/
- http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html
- http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html
- https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/
→ the Explorer · watch your stack · NVD