{"id":"CVE-2018-20434","aliases":["EUVD-2022-2691","GHSA-62q7-qj6g-gvr7"],"status":"published","title":"LibreNMS arbitrary OS commands execution","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.71487,"percentile":0.99419,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78"],"published":"2019-04-24T20:05:43Z","modified":"2026-10-24T10:30:55Z","exploits":[{"source":"exploitdb","id":"EDB-46970","title":"LibreNMS - addhost Command Injection (Metasploit)","type":"remote","platform":"linux","date":"2019-06-05","verified":true,"url":"https://www.exploit-db.com/exploits/46970"},{"source":"exploitdb","id":"EDB-47044","title":"LibreNMS 1.46 - 'addhost' Remote Code Execution","type":"webapps","platform":"php","date":"2019-06-28","verified":true,"url":"https://www.exploit-db.com/exploits/47044"},{"source":"metasploit","id":"exploit/linux/http/librenms_addhost_cmd_inject","title":"LibreNMS addhost Command Injection","type":"exploit","platform":"Unix","date":"2018-12-16","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/http/librenms_addhost_cmd_inject"},{"source":"pocgithub","id":"mhaskar/CVE-2018-20434","title":"mhaskar/CVE-2018-20434","date":"2019-04-25","url":"https://github.com/mhaskar/CVE-2018-20434"}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"librenms/librenms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.46"},{"last_affected":"1.46"}]}],"versions":["1.46"]},{"source":"osv","ecosystem":"Packagist","package":"librenms/librenms","versions":["1.46"]}],"products":[{"vendor":"librenms","product":"librenms"}],"references":[{"url":"https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing","tags":["x_refsource_MISC","x_transferred","Permissions Required","Third Party Advisory","report","web"]},{"url":"https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","Third Party Advisory","evidence"]},{"url":"http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20434","tags":["advisory"]},{"url":"https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434","tags":["web"]},{"url":"https://github.com/advisories/GHSA-62q7-qj6g-gvr7"},{"url":"https://github.com/librenms/librenms","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-20434","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.","status":"published","published":"2019-04-24T20:05:43Z","modified":"2024-08-05T11:58:19.369Z","updated_at":"2026-11-02T14:34:59.872731Z"}],"euvd":[{"id":"EUVD-2022-2691","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.","status":"published","published":"2019-04-24T20:05:43Z","modified":"2024-08-05T11:58:19Z","updated_at":"2026-11-03T02:39:30.889297Z"}],"ghsa":[{"id":"GHSA-62q7-qj6g-gvr7","title":"LibreNMS arbitrary OS commands execution","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php` command mishandling.","status":"published","published":"2022-05-24T16:44:30Z","modified":"2024-04-24T22:10:17Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:37:46.667202Z"}],"nvd":[{"id":"CVE-2018-20434","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.","status":"published","published":"2019-04-24T21:29:00.4Z","modified":"2026-06-17T01:52:50.273Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:04:55.136632Z"}],"osv":[{"id":"CVE-2018-20434","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.","status":"published","published":"2019-04-24T21:29:00.4Z","modified":"2026-10-24T10:30:55.336870361Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"GHSA-62q7-qj6g-gvr7","title":"LibreNMS arbitrary OS commands execution","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\u0026format=text\u0026type=snmpwalk\u0026hostname=localhost request that triggers html/includes/output/capture.inc.php` command mishandling.","status":"published","published":"2022-05-24T16:44:30Z","modified":"2024-04-24T22:28:31.669474Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:38.911014Z"}]}}
