CVE-2026-51271
Deferred Deferred - Pending Action

Heap Overflow in schreibfaul1 ESP32-audioI2S

Vulnerability report for CVE-2026-51271, 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

In schreibfaul1 ESP32-audioI2S 3.4.5, a heap-based buffer overflow vulnerability exists in the WAV header parsing function read_WAV_Header(). The function reads untrusted chunk size and bytes-to-skip value directly from malicious WAV files without reasonable range restriction. Abnormally large bts and headerSize values lead to out-of-bounds heap memory read/write during header parsing, which can be exploited to execute arbitrary code, disclose sensitive information, cause denial of service or escalate privileges.

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 2 associated CPEs
Vendor Product Version / Range
schreibfaul1 esp32-audioi2s 3.4.5
schreibfaul1 esp32-audioi2s to 3.4.5 (inc)

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 schreibfaul1 ESP32-audioI2S library version 3.4.5. The vulnerability occurs in the WAV header parsing function read_WAV_Header(). When processing malicious WAV files, the function reads untrusted chunk size and bytes-to-skip values without proper validation. Large values cause out-of-bounds heap memory access during header parsing, potentially leading to arbitrary code execution, information disclosure, denial of service, or privilege escalation.

Detection Guidance

To detect this vulnerability, monitor for crashes or reboots of ESP32 devices running the affected library when processing WAV files. Use tools like AddressSanitizer during development to catch heap overflows. Inspect network traffic for malformed WAV file headers with abnormally large chunk sizes.

Impact Analysis

Exploitation could allow attackers to crash your ESP32 device via a denial of service (watchdog reboot), execute malicious code within the audio library's privilege scope, or leak sensitive memory contents. The attack can be triggered remotely through network audio streams or locally via malicious files on an SD card without authentication.

Mitigation Strategies

Immediately stop using WAV files from untrusted sources. Update the schreibfaul1 ESP32-audioI2S library to a patched version if available. Implement input validation to restrict chunk sizes and frame lengths in WAV headers. Use sandboxing or memory protection on ESP32 devices to limit damage from potential overflows.

Chat Assistant

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

EPSS Chart