CVE-2018-20434
CRITICAL 9.8CVSS 3.0LibreNMS arbitrary OS commands execution
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.
- Published
- 24 Apr 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-62q7-qj6g-gvr7
- Sources
- NVDJSONOSV GHSA-62q7-qj6g-gvr7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | librenms | librenmscpe:2.3:a:librenms:librenms:1.46:*:*:*:*:*:*:* |
= 1.46 | |
| OSV | Packagist | librenms/librenms | = 1.46 |
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 · Permissions Required, Third Party Advisory, WEB
- https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d · Exploit, Third Party Advisory, WEB
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/ · Exploit, Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20434 · ADVISORY
- https://github.com/librenms/librenms · PACKAGE
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 24 Apr 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 May 2022)