CVE-2026-51270
Deferred Deferred - Pending Action

Heap-based Buffer Overflow in ESP32-audioI2S

Vulnerability report for CVE-2026-51270, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-28

Last updated on: 2026-07-28

Assigner: MITRE

Description

schreibfaul1 ESP32-audioI2S 3.4.5 has a heap-based buffer overflow vulnerability in the htmlToUTF8() HTML entity decoding function. The function parses attacker-controlled malicious HTML entities and uses memmove and memcpy to rearrange string content without validating buffer remaining size and boundary limits. Crafted oversized HTML entity strings can trigger heap out-of-bounds write, allowing remote code execution, memory information leakage, service crash or privilege escalation.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-28
Last Modified
2026-07-28
Generated
2026-07-28
AI Q&A
2026-07-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
schreibfaul1 esp32-audioi2s 3.4.5

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a heap-based buffer overflow in the ESP32-audioI2S library version 3.4.5. The vulnerability exists in the htmlToUTF8() function which processes HTML entity strings from metadata or network streams. The function uses unsafe memmove and memcpy operations without checking buffer sizes, allowing attackers to send oversized HTML entities that overflow the heap buffer. This can lead to remote code execution, memory leaks, crashes, or privilege escalation.

Detection Guidance

To detect this vulnerability, monitor for crashes or reboots in ESP32 devices running schreibfaul1 ESP32-audioI2S 3.4.5 when processing HTML entity strings. Use AddressSanitizer or similar tools to log heap-buffer-overflow errors during audio stream metadata parsing. Check for repeated crashes during remote audio playback or stream label processing.

Impact Analysis

The vulnerability can cause remote denial of service by crashing the ESP32 device, requiring a manual power cycle to recover. It may also allow remote attackers to execute arbitrary code on the device or leak sensitive memory contents like audio buffers or network metadata. Exploitation requires only unauthenticated remote audio stream input.

Compliance Impact

This vulnerability could lead to unauthorized memory access or code execution, potentially exposing sensitive data processed by the ESP32-audioI2S library. Such data exposure may violate GDPR's data protection requirements or HIPAA's safeguards for protected health information if audio metadata or streams contain regulated data.

Mitigation Strategies

Immediately disable remote audio stream processing or network metadata parsing on vulnerable ESP32 devices. Block incoming audio streams with HTML entity strings or sanitize inputs to limit HTML entity length. Update to a patched library version once available. Isolate affected devices from critical networks until mitigation is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-51270. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart