CVE-2026-30871 in Openwrt
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 r...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openwrt | Openwrt | < 24.10.6 ≥ 25.12.0, < 25.12.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-30871 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-079892-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-03-19 |
| Last modified | 2026-11-03 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-121: Stack-Based Buffer Overflow
Buffer overflow corrupting the program stack, typically overwriting the return address for code execution.
Analysis AI-written, not human-reviewed
OpenWrt Project versions prior to 24.10.6 and 25.12.1 contain a critical stack-based buffer overflow vulnerability in the mdns daemon's parse_question function, exploitable via specially crafted PTR DNS queries.
The vulnerability is triggered by PTR queries for reverse DNS domains (.in-addr.arpa and .ip6.arpa) sent to the mdns daemon on UDP port 5353. The dn_expand function expands DNS packets into an 8096-byte global buffer, which can be overflowed, leading to potential remote code execution.
Questions
What is CVE-2026-30871?
OpenWrt Project versions prior to 24.10.6 and 25.12.1 contain a critical stack-based buffer overflow vulnerability in the mdns daemon's parse_question function, exploitable via specially crafted PTR DNS queries.
What is the CVSS score for CVE-2026-30871?
CVE-2026-30871 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2026-30871 actively exploited?
No confirmed active exploitation of CVE-2026-30871 as of 2026-11-04.
How do I remediate CVE-2026-30871?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-30871?
CVE-2026-30871 affects Openwrt Openwrt.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openwrt","product":"Openwrt","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-03.