Critical severity · published Mar 19, 2026
CVE-2026-30871
OpenWrt Project has Stack-based Buffer Overflow in DNS PTR Query
9.8
CVSS
1.3%
EPSS
No
On KEV
Description
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 parse_question function. The issue is triggered by PTR queries for reverse DNS domains (.in-addr.arpa and .ip6.arpa). DNS packets received on UDP port 5353 are expanded by dn_expand into an 8096-byte global buffer (name_buffer), which is then copied via an unbounded strcpy into a fixed 256-byte stack buffer when handling TYPE_PTR queries. The overflow is possible because dn_expand converts non-printable ASCII bytes (e.g., 0x01) into multi-character octal representations (e.g., \001), significantly inflating the expanded name beyond the stack buffer's capacity. A crafted DNS packet can exploit this expansion behavior to overflow the stack buffer, making the vulnerability reachable through normal multicast DNS packet processing. This issue has been fixed in versions 24.10.6 and 25.12.1.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.3% · higher than 69% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OP
openwrt · openwrt
< 24.10.6; >= 25.12.0-rc1, < 25.12.1 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-30871
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-30871
Release Notes
https://github.com/openwrt/openwrt/releases/tag/v24.10.6
Release Notes
https://github.com/openwrt/openwrt/releases/tag/v25.12.1
Vendor Advisory
https://github.com/openwrt/openwrt/security/advisories/GHSA-7c3j-f7w2-p8f6
More from openwrt
9.8
CVE-2026-30872
OpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookup
9.8
CVE-2025-20683
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check
9.8
CVE-2025-20682
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check
9.8
CVE-2025-20681
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check
9.8
CVE-2025-20674
In wlan AP driver, there is a possible way to inject arbitrary packet due to a missing permission check
