{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "25.12.0-rc1"
              },
              {
                "fixed": "25.12.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "b1a74b1cde0dd9b4c07bb5ba7020f94967912f2d"
            },
            {
              "fixed": "d6115e42127481645ae7210c9d8ca1bd14313473"
            }
          ],
          "repo": "https://github.com/openwrt/openwrt",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "24.10.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ec8eeaa8fbd3122b9b9e68b7db02707884a19c9c"
            }
          ],
          "repo": "https://github.com/openwrt/openwrt",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mpgh-v658-jqv5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30872.json"
  },
  "details": "OpenWrt Project is a Linux operating system targeting embedded devices. In versions prior to 24.10.6 and 25.12.1, the mdns daemon has a Stack-based Buffer Overflow vulnerability in the match_ipv6_addresses function, triggered when processing PTR queries for IPv6 reverse DNS domains (.ip6.arpa) received via multicast DNS on UDP port 5353. During processing, the domain name from name_buffer is copied via strcpy into a fixed 256-byte stack buffer, and then the reverse IPv6 request is extracted into a buffer of only 46 bytes (INET6_ADDRSTRLEN). Because the length of the data is never validated before this extraction, an attacker can supply input larger than 46 bytes, causing an out-of-bounds write. This allows a specially crafted DNS query to overflow the stack buffer in match_ipv6_addresses, potentially enabling remote code execution. This issue has been fixed in versions 24.10.6 and 25.12.1.",
  "id": "CVE-2026-30872",
  "modified": "2026-04-01T23:08:09.359360199Z",
  "published": "2026-03-19T21:56:23.472Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/openwrt/openwrt/releases/tag/v24.10.6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openwrt/openwrt/releases/tag/v25.12.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30872.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/openwrt/openwrt/security/advisories/GHSA-mpgh-v658-jqv5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30872"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookup"
}