Skip to main content

ESP-IDF EUVDEUVD-2026-35915

| CVE-2026-45160 MEDIUM
Out-of-bounds Read (CWE-125)
2026-06-10 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Connect to target ESP32 SoftAP BSS or shared L2 segment
  2. Delivery
    Craft DHCP request with malformed options TLV (oversized length byte)
  3. Exploit
    Transmit packet to device DHCP server (UDP/67)
  4. Execution
    parse_options() reads past options buffer end into heap
  5. Impact
    Out-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 parse_options() advances its pointer past the buffer boundary, reading adjacent heap memory; depending on heap layout, this results in a crash (DoS) and potentially leaks heap contents back to the attacker. No public exploit code has been identified, but the vulnerability is straightforward to reproduce given the published commit diff showing the exact missing bounds checks.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

esp-idf = 5.3.5
esp-idf = 5.4.4
esp-idf = 6.0.1
esp-idf = 5.2.7
esp-idf = 5.5.4

Affected Packages

euvd esp_idf no fix

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
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

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

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

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2024-53406 HIGH POC
8.8 Mar 13

Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass. Rated high severity (

CVE-2019-12587 HIGH POC
8.1 Sep 04

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

CVE-2020-12638 MEDIUM POC
6.8 Jul 23

An encryption-bypass issue was discovered on Espressif ESP-IDF devices through 4.2, ESP8266_NONOS_SDK devices through 3.

CVE-2024-33454 MEDIUM POC
6.5 May 14

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to execute arbitrary code via a crafted script t

CVE-2019-12586 MEDIUM POC
6.5 Sep 04

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

CVE-2025-52471 CRITICAL
9.8 Jun 24

A security vulnerability in the ESP-NOW protocol implementation within the ESP Wi-Fi component of (CVSS 9.8). Critical s

CVE-2022-24893 HIGH
8.8 Jun 25

ESP-IDF is the official development framework for Espressif SoCs. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2021-28139 HIGH
8.8 Sep 07

The Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier does not properly restrict the Feature Page up

CVE-2024-33453 HIGH
8.1 Oct 17

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to obtain sensitive information via the external

CVE-2026-55687 HIGH
7.5 Jul 10

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

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