Skip to main content

ESP32-audioI2S CVE-2026-51272

| EUVDEUVD-2026-51269 CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-07-30 mitre GHSA-376c-j8f6-2fff
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Host malicious stream with oversized Latin-1 metadata
  2. Delivery
    Victim ESP32 device fetches stream over network
  3. Exploit
    latinToUTF8() under-allocates ps_ptr heap buffer
  4. Execution
    Out-of-bounds write corrupts adjacent heap structures
  5. Impact
    Crash device or execute attacker code

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an ESP32 device running ESP32-audioI2S 3.4.5 process attacker-controlled audio metadata through the latinToUTF8() Latin-1-to-UTF-8 conversion path - concretely, the device must fetch or play a stream/file whose Latin-1 ID3 or ICY metadata field is oversized enough to defeat the length-doubling allocation. No authentication is required (CVSS PR:N) and no user interaction is modeled (UI:N), but the practical limiting factor is that the device must be pointed at attacker-controlled audio content; deployments that only ever play a fixed set of trusted stations are far less exposed. Reliable code execution (versus a simple crash) additionally depends on ESP32 heap layout and firmware build, so denial of service is the most readily achievable outcome while full RCE requires more effort.

Impact

The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8) portrays a trivially remote, unauthenticated, full-impact flaw, and CISA's SSVC framework agrees on outcome severity (Technical Impact: total) while marking Automatable: yes but Exploitation only at 'poc' - meaning exploit code exists but active exploitation is not established. No EPSS score and no KEV listing are present in the provided data, consistent with a proof-of-concept-stage issue rather than mass exploitation. An important caveat: the CVSS AV:N/PR:N/UI:N assumes the vulnerable metadata is reachable purely over the network with no interaction, but in practice the overflow triggers only when the ESP32 device is made to fetch or play attacker-controlled audio/metadata (e.g., a malicious stream URL or file), so realized risk depends heavily on how a given deployment selects its audio sources - verify against the device's provisioning model. Net assessment: genuinely high technical severity on affected embedded devices, but real-world priority is bounded by the niche footprint of the library and the need to feed the device malicious input.

Exploit ScenarioDerived

An attacker operates or hijacks an internet-radio stream (or crafts an audio file) whose ICY/ID3 metadata contains oversized Latin-1 text; when a victim's ESP32 device running ESP32-audioI2S 3.4.5 plays that stream, latinToUTF8() under-allocates and writes past the heap buffer, crashing the device or, with a carefully shaped payload, corrupting heap structures toward code execution. A proof-of-concept is publicly available (gist at https://gist.github.com/programmervuln/5d1388bb85dfaf2e7e2700c5a2bceef5), and the low attack complexity means triggering the memory corruption is straightforward once the device consumes attacker-controlled metadata.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Heap-based buffer overflow in schreibfaul1's ESP32-audioI2S library version 3.4.5 lets an attacker who controls audio stream metadata corrupt heap memory through the latinToUTF8() character-encoding routine, with SSVC rating the technical impact as total (potential code execution, information disclosure, DoS or privilege escalation). The flaw is demonstrated by publicly available exploit code but is not listed in CISA KEV, so it reflects a POC-stage issue rather than confirmed active exploitation. The library is a widely-used hobbyist Arduino/ESP32 audio component, so exposure is concentrated in embedded maker and IoT projects rather than enterprise fleets.

RemediationAI

No vendor-released fixed version is identified in the provided data (references point to the upstream source file and NVD, not a tagged patched release), so treat this as no vendor-released patch identified at time of analysis - monitor https://github.com/schreibfaul1/ESP32-audioI2S for a release beyond 3.4.5 and upgrade as soon as one is published. As compensating controls, restrict the device to trusted, hard-coded audio stream URLs and stations rather than user- or attacker-supplied URLs, which removes the primary delivery path for malicious metadata at the cost of reduced flexibility; place ESP32 devices on an isolated network segment that cannot reach arbitrary internet hosts, trading away open internet-radio functionality; and where source modification is feasible, patch latinToUTF8() locally to compute the exact required output length and enforce a hard bounds check before writing, or skip Latin-1 metadata conversion entirely if that metadata is not needed. Reference the CVE/EUVD advisory at https://nvd.nist.gov/vuln/detail/CVE-2026-51272 for tracking.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ESP32-audioI2S is an Arduino/ESP32 C++ library that decodes and plays audio (MP3, AAC, internet-radio streams, etc.) over the I2S bus, and as part of that it parses embedded text metadata such as ID3 tags and ICY stream titles. The affected latinToUTF8() function converts Latin-1 encoded text to UTF-8; because a single Latin-1 byte can expand to two UTF-8 bytes, the code sizes its destination buffer by simply doubling the input length and reallocates the ps_ptr heap buffer without strict boundary validation. This is a classic CWE-122 heap-based buffer overflow: when crafted oversized or maliciously structured input is supplied, the doubling heuristic under-allocates and the conversion writes out of bounds on the heap, corrupting adjacent allocator structures and data. The vulnerable code path lives in Audio.cpp in the upstream repository referenced by the CVE.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Reachable over the network via attacker-controlled stream metadata with no auth or interaction on a default streaming device; heap overflow yields full memory-corruption impact, so C/I/A all High.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 30, 2026 - 20:37 NVD
9.8 (CRITICAL)
CVE Published
Jul 30, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Jul 30, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

In schreibfaul1 ESP32-audioI2S 3.4.5, a heap-based buffer overflow vulnerability exists in the latinToUTF8() character encoding conversion function. The function calculates required buffer size by simply doubling input length and reallocates ps_ptr heap buffer without strict boundary validation. Malicious oversized input can trigger insufficient buffer allocation and out-of-bounds write during Latin-1 to UTF-8 conversion, leading to code execution, information disclosure, denial of service or privilege escalation.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Critical heap-overflow vulnerability in ESP32-audioI2S library (v3.4.5) enables remote code execution through malicious audio metadata in embedded and IoT systems. Publicly available exploit code exists, though active exploitation has not been confirmed by CISA. Organizations deploying this widely-used hobbyist audio component face significant risk given the CRITICAL severity rating and unavailability of vendor patches.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict audio stream ingestion to trusted, validated sources; implement network segmentation isolating affected devices from production networks; disable remote audio functionality if not essential to device operation; or maintain affected systems in isolated or restricted-access environments pending vendor patch release. Monitor the library's GitHub repository and security advisories for patch availability.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Low
niche hobbyist ESP32/Arduino audio library, minimal enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy