Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate ESP32 in provisioning mode
-
DeliveryConnect to BLE/SoftAP protocomm endpoint
-
ExploitSend crafted SessionCommand0 with oversized SRP6a username
-
ExecutionTrigger heap overflow in handle_session_command0
-
PersistCorrupt adjacent heap allocations
-
ImpactCrash device or wedge onboarding
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap 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 device must be running ESP-IDF 5.2.6, 5.3.5, 5.4.4, 5.5.4, or 6.0 firmware AND must be in its provisioning state with the protocomm component active and Security Scheme 2 (SRP6a) configured as the security version - this is the default for ESP-IDF unified provisioning but is typically only exposed during initial device onboarding, factory reset, or explicit re-provisioning. The attacker must be on the adjacent provisioning link (BLE GATT or SoftAP Wi-Fi, per CVSS AV:A) - internet-only attackers cannot reach the vulnerable handler. No authentication is required (PR:N) and no user interaction at the device side is needed (UI:N); the bug fires in the first session-setup message before any SRP6a credentials are verified. The chief limiting factor is therefore deployment posture: a device that has completed provisioning and torn down its protocomm endpoint is not exposed, which is why fleet-wide risk depends on how long devices remain in onboarding mode. |
| Impact | The CVSS 3.1 vector AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H gives a base score of 7.1 driven primarily by High availability impact and unauthenticated low-complexity access, but constrained to Adjacent network - meaning the attacker must be on the same BLE/Wi-Fi provisioning link, not the open internet. This realistically reflects that protocomm is most exposed during device pairing/onboarding, where a nearby attacker can crash or wedge the device but full code execution is not claimed in the description. No EPSS score, no KEV listing, and no POC reference were supplied, and no public exploit was identified at time of analysis, so this should not be triaged as an active campaign - it is a defensive patch priority for fleet operators rather than an emergency. One nuance worth verifying: the description mentions truncation-versus-copy asymmetry which typically yields heap corruption (potential RCE on embedded targets without ASLR/W^X), yet the CVSS C:N/I:L rating suggests Espressif assessed practical exploitation as limited to availability and minor integrity impact - defenders treating ESP32 devices in high-trust roles (industrial, medical, access control) should not assume RCE is ruled out without independent confirmation. |
| Exploit ScenarioDerived | An attacker within Bluetooth Low Energy or Wi-Fi range of an ESP32 device in provisioning mode connects to its protocomm endpoint and sends a crafted SessionCommand0 protobuf message whose client_username field carries an oversized length value, triggering the unchecked memcpy in handle_session_command0() and corrupting the heap. The most reliable outcome is a device crash and watchdog reset (denial of service of the onboarding flow), with heap-grooming on this embedded target potentially enabling further integrity impact against adjacent allocations. No public exploit was identified at time of analysis, but the vulnerable code path and fix diff are public on GitHub, lowering the bar to write a proof-of-concept. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Heap buffer overflow in Espressif ESP-IDF's protocomm component allows adjacent-network attackers to corrupt heap memory during the SRP6a (Security Scheme 2) session-setup handshake on affected IoT devices running ESP-IDF 5.2.6, 5.3.5, 5.4.4, 5.5.4, or 6.0. The flaw stems from a type-width mismatch in handle_session_command0() that trusts the client-supplied protobuf username length, enabling denial of service and potential integrity impact on provisioning interfaces. No public exploit identified at time of analysis; patches are available in 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1.
RemediationAI
Vendor-released patches are available: upgrade ESP-IDF to 5.2.7, 5.3.6, 5.4.5, 5.5.5, or 6.0.1 (matching your release branch) and rebuild/reflash device firmware, per the GitHub Security Advisory at https://github.com/espressif/esp-idf/security/advisories/GHSA-9r76-858f-v6jh. The relevant upstream fix commits are 71eb2dbe6aaef830719ecac8edf409e2992b64b2 and 0ea58d79845ad674d0358d5de246015a68c4cb4f, which add length bounds (UINT16_MAX) on the SRP6a username field and tighten protobuf payload_case validation. As a compensating control until firmware can be reflashed, restrict the provisioning window - disable BLE/SoftAP provisioning after initial onboarding (call protocomm_remove_endpoint / stop the provisioning manager), or set the device to only accept provisioning while a physical button is held; this eliminates the attack surface at the cost of breaking remote re-provisioning workflows. If the device must remain in provisioning mode, isolate it on a dedicated Wi-Fi SSID or BLE-shielded enclosure during deployment and downgrade Security Scheme 2 to Security Scheme 1 only if your threat model accepts the weaker auth, noting that scheme 1 lacks SRP6a's PAKE properties.
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 C-based SDK for ESP32/ESP8266-family microcontrollers used in millions of IoT devices, and the protocomm component provides secure provisioning channels typically exposed during initial Wi-Fi onboarding over BLE or SoftAP. The vulnerable code path is the Security Scheme 2 implementation of SRP6a (Secure Remote Password) in components/protocomm/src/security/security2.c, where handle_session_command0() processes the first protobuf-encoded session message containing the client's username. CWE-122 (heap-based buffer overflow) applies because the destination buffer size is derived from a narrower integer type than the source length field (a size_t from the protobuf 'client_username.len'), so an oversized value passes a too-permissive check and the memcpy writes past the allocation. The fix evidence in commit 71eb2dbe6aaef830719ecac8edf409e2992b64b2 adds a UINT16_MAX upper bound on client_username.len and switches the memcpy to use the truncated cur_session->username_len, while sibling commits harden payload_case validation across both security1 and security2 handlers.
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:L/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.6, 5.3.5, 5.4.4, 5.5.4, and 6.0, a heap buffer overflow exists in the Security Scheme 2 (SRP6a) session-setup path of the protocomm component. The first-phase handler (handle_session_command0() in components/protocomm/src/security/security2.c) trusts the length of a client-supplied protobuf field for the SRP6a username and copies it into a buffer whose size is derived from a narrower destination type. The resulting truncation-versus-copy asymmetry corrupts the heap when an oversized value is supplied. 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
Espressif ESP-IDF versions 5.2.6 through 6.0 contain a heap buffer overflow in the protocomm component affecting IoT device provisioning. While no public exploit has been identified, the vulnerability poses operational risk to devices on adjacent networks and enables potential integrity attacks on provisioning interfaces. Patched versions are immediately available and should be deployed to prevent provisioning disruptions and protect IoT infrastructure.
Apply vendor patch.
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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-35918
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB