Skip to main content

OpenWrt odhcpd EUVDEUVD-2026-108966

| CVE-2026-53921 CRITICAL
Stack-based Buffer Overflow (CWE-121)
2026-10-23 GitHub_M
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach DHCPv6 server via UDP/547
  2. Delivery
    Send crafted SOLICIT to establish IA_NA bindings
  3. Exploit
    Send REQUEST with overflow-inducing IA option count
  4. Execution
    Overflow pdbuf stack buffer in IA serializer
  5. Persist
    Corrupt stack return address (absent canary/ASLR on embedded target)
  6. Impact
    Execute arbitrary code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must be running OpenWrt with odhcpd configured as a DHCPv6 server, which is the default IPv6 configuration in OpenWrt. Site 1 (build_ia() overflow at dhcpv6-ia.c:594) additionally requires the server interface to have at least two global IPv6 addresses assigned so that each successful IA_NA reply is 72 bytes; the attacker must first send a relay-forwarded SOLICIT to establish five IA_NA bindings, then send a REQUEST carrying those five IAIDs plus seven IA_NA options containing off-link IA_ADDR sub-options. Site 2 (RECONF_ACCEPT overflow at dhcpv6-ia.c:1246) requires the DHCPv6 REQUEST to include a RECONF_ACCEPT option, 22 or more unassignable IA_PD options, and one final IA_NA option - no pre-established bindings are required. Both sites are reachable directly from the local link over UDP port 547, or from a broader network segment via a DHCPv6 relay agent; the CVSS AV:N metric reflects the relay-forwarding path. No authentication is required for either site. Exploitation is limited to odhcpd versions prior to 25.12; the absence of stack canaries and ASLR on many embedded OpenWrt targets - confirmed by the advisory author - makes code execution realistic but not guaranteed across all hardware configurations.

Impact

CVSS 9.8 is well-justified: AV:N/AC:L/PR:N/UI:N reflects unauthenticated, network-reachable exploitation via a single crafted UDP packet with no race condition or special attacker-side preparation. The EPSS score of 0.88% (59th percentile) is notably low relative to the CVSS severity and the act_now decision label; this divergence most plausibly reflects that odhcpd is constrained to OpenWrt-based embedded devices and mass internet-scanning of DHCPv6 endpoints has not materialized, not that the vulnerability is low-risk. There is no CISA KEV listing, so active exploitation is not confirmed. However, the GHSA advisory (GHSA-7fwx-hhrg-3496) includes Python PoC scripts demonstrating both overflow sites via ASan, two independent overflow sites in the same call chain increase exploitation reliability, odhcpd runs as root, and the advisory explicitly states that embedded OpenWrt targets often lack stack canaries and ASLR - making RCE realistic, not merely theoretical. The act_now decision label must be weighted heavily here. The low EPSS and absence of KEV are not grounds for deferral; they likely reflect the niche deployment footprint of odhcpd rather than intrinsic resilience. Any OpenWrt deployment running odhcpd as a DHCPv6 server prior to version 25.12 should treat this as an emergency patch.

Exploit ScenarioDerived

An attacker reachable via UDP port 547 - either on the same link as an OpenWrt DHCPv6 server or via a DHCPv6 relay agent - sends a sequence of crafted DHCPv6 packets designed to exhaust odhcpd's fixed 512-byte stack buffer (pdbuf) during IA reply serialization, triggering one of two independently confirmed overflow sites in build_ia() or dhcpv6_ia_handle_IAs(). Because odhcpd runs as root and embedded OpenWrt targets typically lack stack canaries and ASLR, overwriting the stack return address with attacker-controlled data can redirect execution to arbitrary code. Self-contained Python PoC scripts demonstrating the overflow trigger for both sites are included in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 02, 2026

Stack buffer overflow in OpenWrt's odhcpd DHCPv6 server (all versions before 25.12) lets an unauthenticated remote sender write past a fixed 512-byte stack buffer through a single crafted UDP packet on port 547, with two independent overflow sites in the IA reply path. odhcpd runs as root and embedded OpenWrt targets commonly lack stack canaries and ASLR, so memory corruption may escalate to code execution on affected hardware, though such escalation is realistic rather than guaranteed across all targets. Vendor-released patch: odhcpd 25.12; CISA KEV does not list this issue and EPSS is low at 0.88% (59th percentile), but a public PoC reference exists - it is not verified as working exploit code.

RemediationAI

Upgrade odhcpd to version 25.12, the vendor-released fix; the patches are published as commits 0320032ae313452f3c8cb8725c621dd06c36dc03 (adds a buflen >= handshake_len guard around the RECONF_ACCEPT/auth handshake write), 03dacc23356b5789842b9d1bba0200fd005e35f3, 2a42d34c3615e2449ca273f673eee7c429d819a9, 6634b7a3c79c41a27687925c98c35c8aea2f2b5a, d168c27fb6a55a07ac4c888e09ff2f41e263d7b7 and d329a15413387027453644cd363dca06ade28328, and details are in the advisory https://github.com/openwrt/odhcpd/security/advisories/GHSA-7fwx-hhrg-3496. The advisory's own fix guidance is to size the guard in build_ia() to include the 6-byte status sub-option (required = ia_len + (status ? sizeof(o_status) : 0)) and to bounds-check the 36-byte RECONF_ACCEPT handshake before writing it; firmware images embedding a vulnerable odhcpd must be rebuilt against 25.12 rather than patched in place. The advisory supplies no vendor-documented workaround other than updating, so the only exposure-reducing option short of the patch is to stop odhcpd serving DHCPv6 on untrusted segments (setting the interface's dhcpv6 option to disabled), with the trade-off that clients on that segment lose stateful IPv6 address assignment; filtering UDP port 547 is not a complete substitute because relay-forwarded traffic that legitimately reaches the server can still carry the trigger.

Affected VersionsENISA

odhcpd < 25.12

Affected Packages

euvd odhcpd fix: 25.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-121 stack-based buffer overflow in odhcpd's DHCPv6 IA response serialization (src/dhcpv6-ia.c), reachable through the functions dhcpv6_ia_handle_IAs() and build_ia(), which assemble reply options into a fixed 512-byte stack buffer named pdbuf. Site 1: build_ia() only verifies buflen >= sizeof(struct dhcpv6_ia_hdr) (16 bytes) before appending a 6-byte status sub-option, writing 22 bytes into space that may hold fewer, so a REQUEST with five valid IA_NAs plus seven off-link IA_NAs overruns pdbuf by 2 bytes when the server interface carries two global IPv6 addresses (each successful IA_NA reply is 72 bytes). Site 2: when a RECONF_ACCEPT option is present and the first assigned IA is reached, dhcpv6_ia_handle_IAs() unconditionally writes a 4-byte RECONF_ACCEPT option plus a 32-byte authentication record (36 bytes) with no bounds check, and the unsigned buflen -= handshake_len subtraction underflows when fewer than 36 bytes remain, corrupting subsequent size tracking; 22 unassignable IA_PD options (22 bytes each) plus one final IA_NA drive the buffer to 28 remaining bytes. Both sites are reachable over UDP port 547 directly from the local link or via a DHCPv6 relay agent (the AV:N path), require no authentication (PR:N), no user interaction, and no race or special attacker preparation. The advisory also notes an unrelated stack over-read at dhcpv6.c:720 caused by a DUID length endianness mismatch in memcmp(), to be filed separately.

Know when Odhcpd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

DHCPv6 is unauthenticated (PR:N); relay-forwarding enables network reachability (AV:N); Site 2 requires only a crafted single packet with no race condition (AC:L); root-level RCE justifies C:H/I:H/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 23, 2026 - 14:02 EUVD
CVE Published
Oct 23, 2026 - 13:20 cve.org
CRITICAL 9.8

DescriptionCVE.org

odhcpd is the DHCPv6, DHCPv4, and router-advertisement server used by OpenWrt. Prior to version 25.12, odhcpd's DHCPv6 IA response handler writes past the end of a fixed 512-byte stack buffer (pdbuf) when a single DHCPv6 REQUEST carries enough IA options to nearly exhaust the reply space. Two independent overflow sites exist in the same call chain, both reachable from the network via a single unauthenticated UDP packet. odhcpd runs as root on OpenWrt; embedded targets often lack stack canaries and ASLR, making code execution realistic. This issue has been patched in version 25.12.

Technical POC Analysis

CWE-121 stack-based buffer overflow in odhcpd DHCPv6 IA reply serialization.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

OpenWrt's DHCPv6 server (odhcpd) is affected by a critical stack buffer overflow that allows unauthenticated remote attackers to potentially execute code on vulnerable routers and embedded devices. Successful exploitation could grant attackers root-level control, compromising network integrity and data confidentiality across the organization. Leadership should prioritize patching to mitigate risks to branch offices, remote workers, and IoT deployments relying on OpenWrt.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 41% exploitable
Prevalence
Medium
dominant open-source router firmware for SOHO and embedded devices
Social Media
26
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy