Heap-based Buffer Overflow Affecting espressif/esp-idf package, versions [,5.2.7)[6.0-beta1,6.0.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-ESPRESSIFESPIDF-17391840
  • published21 Jun 2026
  • disclosed10 Jun 2026
  • creditEun0us

Introduced: 10 Jun 2026

CVE-2026-45542  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade espressif/esp-idf to version 5.2.7, 6.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the handle_session_command0 process. An attacker can corrupt the heap and potentially cause a denial of service or execute arbitrary code by supplying an oversized value for the SRP6a username field during Bluetooth session setup.

CVSS Base Scores

version 4.0
version 3.1