CVE-2026-51260: schreibfaul1 ESP32-audioI2S heap buffer overflow in AudioBuffer::writeSpace

CVE-2026-51260 · Severity: info · CVSS 0 · Published 2026-07-28

A vulnerability in the ESP32-audioI2S library, which is used to play audio on ESP32 microcontrollers, could allow an attacker to crash the device or potentially take control of it. By providing a specially crafted or excessively long audio stream, an attacker can cause the device's memory to be overwritten. This can lead to a permanent freeze of audio playback, a device reboot, or the exposure of sensitive data stored in memory.

Technologies: Schreibfaul1 ESP32-audioI2S. Vendors: Schreibfaul1.

Quick answers

Is CVE-2026-51260 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-51260 being exploited in the wild.
How severe is CVE-2026-51260?
Informational severity, with a CVSS score of 0, published 28 July 2026.
Which products and versions are affected?
Schreibfaul1 ESP32-audioI2S 3.4.5.
Is there a fix for CVE-2026-51260?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-51260 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-51260?
Check whether you run Schreibfaul1 ESP32-audioI2S at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A heap-based buffer overflow (CWE-122) exists in the AudioBuffer::writeSpace() function within src/Audio.cpp of ESP32-audioI2S v3.4.5. The vulnerability is caused by an unconditional memcpy operation that copies a fixed number of bytes (m_resBuffSize) to the start of a ring buffer during a wrap-around condition without validating that the destination has sufficient remaining capacity. An attacker can exploit this by providing long continuous audio streams (MP3, AAC, FLAC) or crafted media files that trigger the wrap-around logic, leading to out-of-bounds writes on ESP32 PSRAM. This can result in heap metadata corruption, remote denial of service (watchdog reboots), or potential arbitrary code execution. As of the advisory date, a vendor patch is reported to be in development.

Affected products

  • schreibfaul1 ESP32-audioI2S 3.4.5

Timeline

  • 2026-07-28: disclosed: CVE-2026-51260 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.