CVE-2026-30871
CVE-2026-30871 is a critical-severity vulnerability in Openwrt with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-121.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v4: 9.5
- EPSS exploit prediction: 1% (65th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-13247
- Weakness: CWE-121
- Affected product: Openwrt
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-30871?
- 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.
- How severe is CVE-2026-30871?
- CVE-2026-30871 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-30871 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (65th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-30871?
- CVE-2026-30871 affects Openwrt. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-30871?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2026-30871 have an EU (EUVD) identifier?
- Yes. CVE-2026-30871 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-13247.
- When was CVE-2026-30871 published?
- CVE-2026-30871 was published on 2026-03-19 and last updated on 2026-06-17.
References
- https://github.com/openwrt/openwrt/releases/tag/v24.10.6
- https://github.com/openwrt/openwrt/releases/tag/v25.12.1
- https://github.com/openwrt/openwrt/security/advisories/GHSA-7c3j-f7w2-p8f6
Affected products (1)
- cpe:2.3:o:openwrt:openwrt:*:*:*:*:*:*:*:*
More vulnerabilities in Openwrt
- CVE-2026-30872 — Critical (CVSS 9.8): OpenWrt Project is a Linux operating system targeting embedded devices. In versions prior to 24.10.6 and 25.12.1, the…
- CVE-2025-20683 — Critical (CVSS 9.8): In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local…
- CVE-2025-20682 — Critical (CVSS 9.8): In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local…
- CVE-2025-20681 — Critical (CVSS 9.8): In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local…
- CVE-2025-20674 — Critical (CVSS 9.8): In wlan AP driver, there is a possible way to inject arbitrary packet due to a missing permission check. This could…
- CVE-2025-20654 — Critical (CVSS 9.8): In wlan service, there is a possible out of bounds write due to an incorrect bounds check. This could lead to remote…
Other CWE-121 (Stack-based Buffer Overflow) vulnerabilities
- CVE-2026-12848 — Critical (CVSS 10.0): GV-I/O Box 4E is a smart embedded device with 4 input and 4 relays output that can be controlled over Ethernet and…
- CVE-2026-12847 — Critical (CVSS 10.0): GV-I/O Box 4E is a smart embedded device with 4 input and 4 relays output that can be controlled over Ethernet and…
- CVE-2026-12846 — Critical (CVSS 10.0): GV-I/O Box 4E is a smart embedded device with 4 input and 4 relays output that can be controlled over Ethernet and…
- CVE-2026-12485 — Critical (CVSS 10.0): GV-I/O Box 4E is a smart embedded device with 4 input and 4 relays output that can be controlled over Ethernet and…
- CVE-2026-37541 — Critical (CVSS 10.0): Buffer overflow vulnerability in Open Vehicle Monitoring System 3 (OVMS3) 3.3.005. In canformat_gvret.cpp, the length…
- CVE-2026-42996 — Critical (CVSS 10.0): JS8Call through 2.3.1 and JS8Call-improved before 3.0 have a stack-based buffer overflow via a radio transmission of…
Browse all CWE-121 (Stack-based Buffer Overflow) vulnerabilities →