{"id":"CVE-2018-20434","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-20434","generatedAt":"2026-10-28T21:22:09.412Z","title":"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…","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.","published":"2019-04-24T21:29:00.000Z","lastModified":"2026-06-17T01:52:50.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-78"],"affected":["librenms/librenms"],"epss":{"score":0.71487,"percentile":0.99412,"date":"2026-10-27","history":[{"date":"2026-09-21","score":0.65031,"percentile":0.99243},{"date":"2026-09-22","score":0.71487,"percentile":0.99387}]},"kev":{"listed":false},"exploits":{"count":2,"verified":true,"firstPublished":"2019-06-05","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":47044,"kind":"exploit","title":"LibreNMS 1.46 - 'addhost' Remote Code Execution","url":"https://www.exploit-db.com/exploits/47044","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/47044.py","file":"exploits/php/webapps/47044.py","published":"2019-06-28","added":"2019-06-28","updated":"2019-06-28","author":"Askar","type":"webapps","platform":"php","port":80,"verified":true,"codes":["CVE-2018-20434"],"tags":null,"aliases":null,"applicationUrl":"http://www.exploit-db.comlibrenms-1.46.tar.gz","screenshotUrl":null,"referenceUrl":"https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d"},{"edbId":46970,"kind":"exploit","title":"LibreNMS - addhost Command Injection (Metasploit)","url":"https://www.exploit-db.com/exploits/46970","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/remote/46970.rb","file":"exploits/linux/remote/46970.rb","published":"2019-06-05","added":"2019-06-05","updated":"2019-06-05","author":"Metasploit","type":"remote","platform":"linux","port":null,"verified":true,"codes":["CVE-2018-20434"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 71.5%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[{"kind":"epss","label":"EPSS jump","at":"2026-09-22T00:00:00.000Z","detail":{"to":0.71487,"from":0.65031,"percentile":0.99387},"summary":"EPSS moved from 65.0% to 71.5% probability of exploitation in the next thirty days."}],"references":[{"url":"http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html","source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html","source":"cve@mitre.org"},{"url":"https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing","tags":["Permissions Required","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/","tags":["Exploit","Technical Description","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing","tags":["Permissions Required","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/","tags":["Exploit","Technical Description","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20434","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}