Heap-based buffer overflow in ESP-IDF - CVE-2026-45542

 

Heap-based buffer overflow in ESP-IDF - CVE-2026-45542

Published: May 18, 2026


Vulnerability identifier: #VU131731
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-45542
CWE-ID: CWE-122
Exploitation vector: Adjecent network
Exploit availability: No public exploit available
Vendor: Espressif Systems
Affected software:
ESP-IDF

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to heap-based buffer overflow in handle_session_command0() in components/protocomm/src/security/security2.c when processing a client-supplied SRP6a username field during Security Scheme 2 session setup over Bluetooth Low Energy. A remote attacker can send an oversized protobuf username field to cause a denial of service.

The issue is reachable before any SRP6a credential check and affects only the NimBLE BLE transport with Security Scheme 2 enabled.


How to mitigate CVE-2026-45542

Install security update from vendor's website.

Sources