Skip to content
Fencer Intel
critical 9.8

CVE-2018-20434 in the critical feed json

LibreNMS arbitrary OS commands execution

published 7y ago modified 4mo 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 and 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.

Is CVE-2018-20434 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Timeline

  1. First public exploit (Metasploit exploit/linux/http/librenms_addhost_cmd_inject)
  2. 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-09).

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

Sources

Fencer Intel 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.