Skip to main content

ESP-IDF EUVDEUVD-2026-35914

| CVE-2026-45541 HIGH
NULL Pointer Dereference (CWE-476)
2026-06-10 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify reachable ESP32 device with HTTP server
  2. Delivery
    Send WebSocket upgrade with malformed Sec-WebSocket-Protocol header
  3. Exploit
    Trigger NULL-pointer dereference in httpd_ws_get_response_subprotocol
  4. Execution
    Crash esp_http_server task
  5. Impact
    Device loses HTTP/management availability until reboot

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

The target device must run ESP-IDF 5.2.6, 5.3.5, 5.4.4, 5.5.4, or 6.0 with the esp_http_server component compiled in and WebSocket support enabled, and must expose its HTTP server on a network reachable by the attacker. The attacker must be able to send a TCP HTTP upgrade request carrying a crafted Sec-WebSocket-Protocol header whose strtok_r tokenisation returns NULL (e.g., empty or delimiter-only value). No authentication, user interaction, or non-default platform-specific configuration is required beyond having the WebSocket subprotocol-negotiation code path reachable; the crash occurs before application-level authentication. Limiting factors: devices that do not enable WebSocket support in esp_http_server, or whose HTTP listener is bound only to loopback/segregated networks, are not remotely exploitable.

Impact

The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately reflects an unauthenticated, low-complexity, network-reachable availability-only impact - exactly a remote DoS. There is no confidentiality or integrity impact, and the vulnerability cannot be escalated to code execution given the NULL-deref nature. No EPSS score, KEV listing, or POC was provided, so this is best classified as no public exploit identified at time of analysis; however, the public patch commits clearly identify the trigger, lowering the bar for a researcher to craft a one-packet crash. Real-world risk is highest for fleets of ESP32-based devices exposing esp_http_server WebSocket endpoints to untrusted networks (e.g., LAN-exposed smart-home or industrial gateways), where a single crafted request can knock devices offline; for devices only reachable from trusted networks the risk is meaningfully lower. SSVC inputs not supplied, but exploitation should be considered automatable and the technical impact partial (availability only).

Exploit ScenarioDerived

An attacker on the same network as an ESP32 device running an esp_http_server WebSocket endpoint sends a single HTTP GET upgrade request with a malformed Sec-WebSocket-Protocol header (for example, a header whose tokenisation yields no first token). The server dereferences a NULL pointer during subprotocol matching and crashes the HTTP task, taking the device's management or telemetry interface offline until reboot or watchdog reset. The crash occurs before any application-level authentication, so no credentials or prior access are required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 10, 2026

Remote denial-of-service in Espressif ESP-IDF's esp_http_server WebSocket handshake allows unauthenticated attackers to crash IoT devices by sending a malformed Sec-WebSocket-Protocol header. The flaw (CWE-476 NULL-pointer dereference) is triggered pre-authentication during subprotocol negotiation and affects ESP-IDF 5.2.6, 5.3.5, 5.4.4, 5.5.4, and 6.0; no public exploit identified at time of analysis, though upstream commits disclose the exact vulnerable code path.

RemediationAI

Upgrade ESP-IDF to a vendor-released patched version on the matching release branch: 5.2.7, 5.3.6, 5.4.5, 5.5.5, or 6.0.1, then rebuild and reflash affected devices (see https://github.com/espressif/esp-idf/security/advisories/GHSA-3j8v-xgrq-5vg8 and fix commits 00a2f7fb, 0dc4ee75, 37508ab9, 9fc0ca13, dc46dc51, f88a47e4). For fleets where reflashing the entire population is not immediately feasible, compensating controls include disabling WebSocket support in the esp_http_server build configuration if not used (removes the vulnerable code path but breaks any WebSocket-dependent application features), restricting the device's HTTP/WebSocket listener to trusted VLANs or a management network via firewall/ACL (mitigates remote reachability but does not protect against insider or LAN-resident attackers), or fronting devices with a reverse proxy that validates the Sec-WebSocket-Protocol header format before forwarding (adds operational complexity and a new dependency).

Affected VersionsENISA

esp-idf = 5.5.4
esp-idf = 5.4.4
esp-idf = 6.0
esp-idf = 5.2.6
esp-idf = 5.3.5

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 IoT development framework for ESP32-family microcontrollers, widely embedded in commercial and hobbyist firmware. The vulnerable component is esp_http_server (components/esp_http_server/src/httpd_ws.c), which implements RFC 6455 WebSocket handshake handling. During subprotocol negotiation, the server tokenizes the client-supplied Sec-WebSocket-Protocol header using strtok_r and immediately dereferences the result inside a do-while loop without checking whether tokenisation returned NULL. A malformed or empty header value causes strtok_r to return NULL, which is then passed to strncmp, producing a NULL-pointer dereference (CWE-476) and crashing the HTTP server task. The upstream patch (commit 00a2f7f) restructures the loop into a while (s != NULL) form and additionally hardens the length comparison.

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 7.5 HIGH
AV:N/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
Network
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.6, 5.3.5, 5.4.4, 5.5.4, and 6.0, a NULL-pointer dereference exists in the WebSocket subprotocol-negotiation path of the esp_http_server component. While parsing the client-supplied Sec-WebSocket-Protocol request header during the WebSocket handshake, the tokenisation result is dereferenced without a NULL check, so a malformed header value can crash the server before any application-level authentication runs. This issue has been patched in versions 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1.

Executive ViewAI

Why It Matters

Espressif ESP-IDF framework contains a remote denial-of-service vulnerability (CVE-2026-45541, CVSS 7.5) affecting IoT device deployments across versions 5.2.6 through 6.0; no public exploit identified at time of analysis. The flaw can be exploited by unauthenticated network attackers without special privileges, creating potential service disruption for any organization operating ESP-IDF-based IoT infrastructure. The absence of a vendor patch requires immediate interim mitigations to protect operational continuity.

Business Impact: High
Compensating Controls

Network-level rate limiting on WebSocket handshake requests to prevent rapid connection attempts; input filtering at perimeter for malformed Sec-WebSocket-Protocol headers; network segmentation isolating IoT devices from untrusted network segments; application-level monitoring for abnormal connection patterns; disable WebSocket functionality if not mission-critical to device operation; restrict WebSocket client sources via network access control lists.

Threat Intelligence Overview

EPSS Score
0.1%
Top 69% exploitable
Social Media
1
Sightings
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

CVE-2024-51428 HIGH
7.5 Nov 07

An issue in Espressif Esp idf v5.3.0 allows attackers to cause a Denial of Service (DoS) via a crafted data channel pack

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