CVE-2018-20434
LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to…
- 9.8CriticalCVSS base score
- 71.5%Exploitation in 30 daysEPSS · top 0.6% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 2 Exploit-DB entries for it.
Show the exploits3
Metasploit modules1 module
- LibreNMS addhost Command Injection (Metasploit module) (opens in a new tab)
exploit/linux/http/librenms_addhost_cmd_injectRank excellentdisclosed 16 Dec 2018
Exploit-DB2 entries
- LibreNMS 1.46 - 'addhost' Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 47044webapps, phppublished 28 Jun 2019Verified
- LibreNMS - addhost Command Injection (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 46970remote, linuxpublished 5 Jun 2019Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 4 months later
· 4 months later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Critical9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 71.5% · top 0.6% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistlibrenms/librenmsGHSA-62q7-qj6g-gvr7 (opens in a new tab)
References
5
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d (opens in a new tab)x_refsource_MISCx_transferred
- https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing (opens in a new tab)x_refsource_MISCx_transferred
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/ (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-2691 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-62q7-qj6g-gvr7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2018-20434)Record last updated .