Skip to main content

ESP-IDF CVE-2026-45542

| EUVDEUVD-2026-35918 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-06-10 GitHub_M
7.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Locate ESP32 in provisioning mode
  2. Delivery
    Connect to BLE/SoftAP protocomm endpoint
  3. Exploit
    Send crafted SessionCommand0 with oversized SRP6a username
  4. Execution
    Trigger heap overflow in handle_session_command0
  5. Persist
    Corrupt adjacent heap allocations
  6. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

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

esp-idf = 5.3.5
esp-idf = 5.5.4
esp-idf = 5.2.6
esp-idf = 6.0
esp-idf = 5.4.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 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

Vendor (GitHub_M) PRIMARY 7.1 HIGH
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

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
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 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% 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.0%
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
Controlled
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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 heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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