{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.46"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "bd5e692dc778ff7e7e05e5765baa2ad584154589"
            }
          ],
          "repo": "https://github.com/librenms/librenms",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2018-20434",
  "modified": "2026-03-14T13:50:32.084275893Z",
  "published": "2019-04-24T21:29:00.400Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html"
    },
    {
      "type": "WEB",
      "url": "http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html"
    },
    {
      "type": "REPORT",
      "url": "https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing"
    },
    {
      "type": "EVIDENCE",
      "url": "https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d"
    },
    {
      "type": "EVIDENCE",
      "url": "https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}