CVE-2018-20434 in the critical feed json
LibreNMS arbitrary OS commands execution
published 2019-04-24 7 y ago modified 2026-06-17 4 mo ago also GHSA-62q7-qj6g-gvr7 , EUVD-2022-2691
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 71.5%
- EPSS 71.5% chance of exploitation in 30 days, percentile 99.4%
- public exploits
- 3
- Metasploit, Exploit-DB
Summary
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.
Timeline
- First public exploit (Metasploit exploit/linux/http/librenms_addhost_cmd_inject)
- Published
Exploit prediction
71.49% chance of exploitation in the next 30 days, higher than 99.4% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/linux/http/librenms_addhost_cmd_inject LibreNMS addhost Command Injection metasploit exploit, excellent rank, 2018-12-16
- EDB-47044 LibreNMS 1.46 - 'addhost' Remote Code Execution webapps, 2019-06-28
- EDB-46970 LibreNMS - addhost Command Injection (Metasploit) remote, 2019-06-05
- gist.github.com https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d referenced PoC, tagged "exploit" by a source, unverified
- shells.systems https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | librenms/librenms | 1 listed version |
no fix listed |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
gist.github.com
/mhaskar/516df57aafd8c6e3a1d70765075d372d
web, exploit, third-party-advisory
-
shells.systems
/librenms-v1-46-remote-code-execution-cve-2018-20434/
exploit, technical-description, third-party-advisory
-
drive.google.com
/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing
web, permissions-required, third-party-advisory
- 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
advisory
-
github.com
/librenms/librenms
package
-
shells.systems
/librenms-v1-46-remote-code-execution-cve-2018-20434
web
Sources
- CVE List CVE-2018-20434
- GitHub Advisory GHSA-62q7-qj6g-gvr7
- NVD CVE-2018-20434
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.