{
    "id": "CVE-2018-20434",
    "published": "2019-04-24 21:29:00",
    "last_modified": "2026-06-17 01:52:50",
    "cvss_score": "9.8",
    "cvss_severity": "CRITICAL",
    "cvss_version": "3.0",
    "cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "cwe": "CWE-78",
    "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.",
    "epss_score": "0.71487",
    "epss_percentile": "0.99398",
    "kev": 0,
    "kev_due": null,
    "has_exploit": 1,
    "updated_at": "2026-09-26 18:24:11",
    "priority": {
        "rank": 2,
        "label": "Patch early",
        "why": "A public exploit exists."
    },
    "products": [
        {
            "vendor": "librenms",
            "product": "librenms"
        }
    ],
    "kev_detail": null,
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "47044",
            "title": "LibreNMS 1.46 - 'addhost' Remote Code Execution",
            "date": "2019-06-28",
            "url": "https://www.exploit-db.com/exploits/47044"
        },
        {
            "source": "exploit-db",
            "ref_id": "46970",
            "title": "LibreNMS - addhost Command Injection (Metasploit)",
            "date": "2019-06-05",
            "url": "https://www.exploit-db.com/exploits/46970"
        }
    ],
    "refs_list": [
        "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",
        "https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d",
        "https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/",
        "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",
        "https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d",
        "https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/"
    ]
}