{"id":"CVE-2018-20434","published":"2019-04-24T20:05:43Z","modified":"2024-08-05T11:58:19Z","title":"LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is an OS command injection in LibreNMS 1.46, where the $_POST['community'] parameter handled by html/pages/addhost.inc.php is not sanitised when a new device is created. The injected input is later executed when html/includes/output/capture.inc.php mishandles the command during a subsequent ajax_output.php snmpwalk capture request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:18:49Z"},"cvss":null,"epss":{"score":0.71487,"percentile":0.99415,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d","tags":["x_refsource_MISC"]},{"url":"https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing","tags":["x_refsource_MISC"]},{"url":"https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"librenms/librenms","vulnerableRanges":[],"patched":[],"from":["GHSA-62q7-qj6g-gvr7"],"provenance":"source"}],"advisories":[{"id":"GHSA-62q7-qj6g-gvr7","url":"https://github.com/advisories/GHSA-62q7-qj6g-gvr7","severity":"CRITICAL","ecosystem":"Packagist","package":"librenms/librenms","vulnerableRanges":[],"patched":[],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-2691","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-2691","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":46970,"url":"https://www.exploit-db.com/exploits/46970","title":"LibreNMS - addhost Command Injection (Metasploit)","type":"remote","platform":"linux","date":"2019-06-05","verified":true,"provenance":"source"},{"id":47044,"url":"https://www.exploit-db.com/exploits/47044","title":"LibreNMS 1.46 - 'addhost' Remote Code Execution","type":"webapps","platform":"php","date":"2019-06-28","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2019-06-05"},"pocGithub":{"count":1,"skipped":0,"earliest":"2019-04-25","earliestUrl":"https://github.com/mhaskar/CVE-2018-20434","repos":[{"name":"mhaskar/CVE-2018-20434","url":"https://github.com/mhaskar/CVE-2018-20434","stars":9,"created":"2019-04-25"}]},"metasploit":[{"name":"LibreNMS addhost Command Injection","module":"exploit/linux/http/librenms_addhost_cmd_inject","type":"exploit","disclosureDate":"2018-12-16","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb"}],"first":{"date":"2018-12-16","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html","http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2018-12-16","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2019-04-25, Exploit-DB 2019-06-05","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb","provenance":"source"},{"date":"2019-04-24","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-20434","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":24.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.88,"detail":"percentile 0.9941"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 Exploit-DB entries; 2 NVD exploit links; 1 PoC-in-GitHub repo; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}