Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to target ESP32 SoftAP BSS or shared L2 segment
-
DeliveryCraft DHCP request with malformed options TLV (oversized length byte)
-
ExploitTransmit packet to device DHCP server (UDP/67)
-
Executionparse_options() reads past options buffer end into heap
-
ImpactOut-of-bounds heap read triggers device crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target ESP32 device must be running firmware built with an affected ESP-IDF version (5.2.7, 5.3.5, 5.4.4, 5.5.4, or 6.0.1) AND must have SoftAP mode enabled or be explicitly configured as a DHCP server on a local network interface - devices operating solely as Wi-Fi station clients are not running the vulnerable DHCP server and are not affected. The attacker must be on the same L2 network segment as the device or connected to the device's own SoftAP BSS (AV:A), meaning physical proximity or pre-existing network access to the same broadcast domain is required. No authentication credentials are needed (PR:N) and no victim interaction is required (UI:N). Internet-facing exploitation is not possible; the attack surface is bounded to adjacent-network actors - typically Wi-Fi range for SoftAP deployments. |
| Impact | The CVSS 6.5 score with vector AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H accurately captures the primary denial-of-service risk: adjacent-network, unauthenticated, zero-complexity exploitation causing high availability impact. The adjacent-network attack vector (AV:A) is the dominant risk limiter - exploitation requires the attacker to be on the same L2 broadcast domain or connected to the target device's own SoftAP BSS, preventing internet-scale exploitation. However, this constraint is weaker in practice for IoT deployments: ESP32 devices commonly act as access points for provisioning, making the attacker population anyone within Wi-Fi range. The CVSS C:N (no confidentiality impact) conflicts with the intelligence tag 'Information Disclosure'; an out-of-bounds read primitive can expose adjacent heap contents to the attacker before or alongside the crash, suggesting partial heap disclosure may be possible but is not confirmed by the CVE description or vendor advisory - this discrepancy should be verified with Espressif. Attack complexity is Low with no privileges or user interaction required, making exploitation trivial for any attacker within range. EPSS data was not provided in the input; KEV status is absent, confirming no active exploitation is known. Given the wide deployment of ESP32 in IoT products and the lack of a standard firmware update mechanism across the ecosystem, remediation may be slow in the field, increasing real-world exposure time. |
| Exploit ScenarioDerived | An attacker within Wi-Fi range of an ESP32 device operating in SoftAP mode connects to its BSS and transmits a crafted DHCP DISCOVER or REQUEST packet whose options field contains a TLV entry with a length byte set to a value that extends the declared payload beyond the end of the received UDP buffer. The unpatched |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Out-of-bounds read in ESP-IDF's embedded DHCP server crashes or exposes heap memory on ESP32 devices operating in SoftAP or DHCP server mode. The parse_options() function in the bundled lwIP DHCP server component walks BOOTP/DHCP option TLV fields without validating that each option's declared length stays within the received packet buffer, allowing an adjacent-network unauthenticated attacker to trigger a device crash by sending a single crafted DHCP request. Five active release branches are affected (5.2.x through 6.0.x); vendor-released patches are available across all branches. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade ESP-IDF to the vendor-released patched versions: 5.2.8, 5.3.6, 5.4.5, 5.5.5, or 6.0.2, as confirmed by the Espressif Security Advisory at https://github.com/espressif/esp-idf/security/advisories/GHSA-g764-gwc3-75m5 and corroborated by six upstream commits including https://github.com/espressif/esp-idf/commit/2bf4dd12002dbae60a4b21abff010ecb2b8ee82b. After upgrading the SDK, firmware must be fully rebuilt and reflashed to all deployed devices - there is no runtime-only mitigation. As a compensating control where immediate reflashing is not feasible, disable SoftAP mode and the integrated DHCP server (dhcps_stop()) and provision networking through external infrastructure; note this breaks Wi-Fi provisioning and captive portal workflows that depend on SoftAP. Devices operating exclusively in station mode (client-only) connecting to an external AP are not running the vulnerable DHCP server code and are not affected without a configuration change.
Affected VersionsENISA
Affected Packages
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
ESP-IDF is Espressif's official SDK for the ESP32/ESP8266 microcontroller family; it embeds a customized lwIP network stack with a proprietary DHCP server in components/lwip/apps/dhcpserver/dhcpserver.c. DHCP options use Type-Length-Value (TLV) encoding per RFC 2132: each option is encoded as [type byte][length byte][payload bytes...]. The vulnerable parse_options() function advanced its pointer using optptr += optptr[1] + 2 without first confirming that optptr + 1 (the length field) and optptr + 2 + optptr[1] (the payload end) both fell within the received buffer boundary (end). CWE-125 (Out-of-bounds Read) is the root cause class: the parser reads memory past the end of the options array into adjacent heap regions. The fix, visible in commit 2bf4dd12, introduces three explicit guard conditions before consuming any option: if (optptr + 1 >= end) break, reads the length as u8_t opt_len = optptr[1], then checks if (optptr + 2 + opt_len > end) break. PAD option (0x00) handling is also added to advance without a length byte. The CPE string cpe:2.3:a:espressif:esp-idf:*:*:*:*:*:*:*:* covers all affected branches.
Know when Esp Idf 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
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.2.7, 5.3.5, 5.4.4, 5.5.4, and 6.0.1, an out-of-bounds read flaw exists in the DHCP server option parser (parse_options() in components/lwip/apps/dhcpserver/dhcpserver.c) shipped with ESP-IDF's lwIP component. The parser walks the BOOTP/DHCP options field without validating that each option's length byte and declared payload length stay within the received packet buffer. A crafted DHCP request can cause the parser to read past the end of the options buffer into adjacent heap memory. The issue affects the DHCP server used by ESP-IDF's SoftAP and any configuration where the device runs as a DHCP server on a local network. This issue has been patched in versions 5.2.8, 5.3.6, 5.4.5, 5.5.5, and 6.0.2.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in ESP-IDF Memory Safety and Input Validation Flaws
View all 6Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass. Rated high severity (
The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 allows th
An encryption-bypass issue was discovered on Espressif ESP-IDF devices through 4.2, ESP8266_NONOS_SDK devices through 3.
Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to execute arbitrary code via a crafted script t
The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 processes
A security vulnerability in the ESP-NOW protocol implementation within the ESP Wi-Fi component of (CVSS 9.8). Critical s
ESP-IDF is the official development framework for Espressif SoCs. Rated high severity (CVSS 8.8), this vulnerability is
The Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier does not properly restrict the Feature Page up
Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to obtain sensitive information via the external
Denial of service in Espressif's ESP-IDF JPEG driver (versions 6.0.1, 5.5.4, 5.4.4, 5.3.5 and likely earlier) stems from
EUVD-2026-35915
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB