CVE-2026-45542: CWE-122: Heap-based Buffer Overflow in espressif esp-idf
A heap-based buffer overflow vulnerability exists in the Espressif esp-idf framework's protocomm component in versions 5. 2. 6, 5. 3. 5, 5. 4. 4, 5. 5. 4, and 6. 0.
AI Analysis
Technical Summary
The Espressif esp-idf Internet of Things Development Framework contains a heap-based buffer overflow vulnerability (CWE-122) in the protocomm component's Security Scheme 2 (SRP6a) session setup. Specifically, the function handle_session_command0() improperly trusts the length of a client-supplied protobuf field for the SRP6a username and copies it into a buffer derived from a narrower destination type. This mismatch leads to truncation versus copy asymmetry, resulting in heap corruption when an oversized username is provided. The issue affects esp-idf versions 5.2.6, 5.3.5, 5.4.4, 5.5.4, and 6.0 and has been patched in subsequent minor versions 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1.
Potential Impact
Successful exploitation of this vulnerability can cause heap corruption, which may lead to denial of service or potentially arbitrary code execution. The CVSS v3.1 score is 7.1 (high severity) with attack vector requiring adjacent network access, low attack complexity, no privileges or user interaction required, and impact limited to integrity and high impact on availability.
Mitigation Recommendations
A fix is available and has been released in esp-idf versions 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1. Users should upgrade to these patched versions to remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
CVE-2026-45542: CWE-122: Heap-based Buffer Overflow in espressif esp-idf
Description
A heap-based buffer overflow vulnerability exists in the Espressif esp-idf framework's protocomm component in versions 5. 2. 6, 5. 3. 5, 5. 4. 4, 5. 5. 4, and 6. 0.
CVSS v3.1
Score 7.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Espressif esp-idf Internet of Things Development Framework contains a heap-based buffer overflow vulnerability (CWE-122) in the protocomm component's Security Scheme 2 (SRP6a) session setup. Specifically, the function handle_session_command0() improperly trusts the length of a client-supplied protobuf field for the SRP6a username and copies it into a buffer derived from a narrower destination type. This mismatch leads to truncation versus copy asymmetry, resulting in heap corruption when an oversized username is provided. The issue affects esp-idf versions 5.2.6, 5.3.5, 5.4.4, 5.5.4, and 6.0 and has been patched in subsequent minor versions 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1.
Potential Impact
Successful exploitation of this vulnerability can cause heap corruption, which may lead to denial of service or potentially arbitrary code execution. The CVSS v3.1 score is 7.1 (high severity) with attack vector requiring adjacent network access, low attack complexity, no privileges or user interaction required, and impact limited to integrity and high impact on availability.
Mitigation Recommendations
A fix is available and has been released in esp-idf versions 5.2.7, 5.3.6, 5.4.5, 5.5.5, and 6.0.1. Users should upgrade to these patched versions to remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T17:48:47.879Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a28c09e8dd33fbd85c1ae74
Added to database: 6/10/2026, 1:40:46 AM
Last enriched: 6/10/2026, 1:55:44 AM
Last updated: 6/10/2026, 2:56:57 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.