{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "26.1.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "76ed1ef85a4bbcfc9cb1a2331e63a01e4f1e44fd"
            }
          ],
          "repo": "https://github.com/opnsense/core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5rx3-w735-74wm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-88"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45158.json"
  },
  "details": "OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.8, unsanitized user input is passed to the DHCP configuration of the configured interface, which is processed by a shell script, allowing remote code execution as root on the underlying operating system. This vulnerability is fixed in 26.1.8.",
  "id": "CVE-2026-45158",
  "modified": "2026-07-15T01:49:18.610194045Z",
  "published": "2026-05-13T21:54:31.679Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45158.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/opnsense/core/security/advisories/GHSA-5rx3-w735-74wm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45158"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "OPNsense: Command Injection via Attacker-Controlled DHCP Config"
}