Skip to main content

ESP32-audioI2S CVE-2026-51268

| EUVDEUVD-2026-49866 CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-07-28 mitre GHSA-4g54-v22x-6xq2
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Lure device to malicious stream URL
  2. Delivery
    Return oversized host/query segment
  3. Exploit
    dismantle_host() parses untrusted input
  4. Execution
    clone_from() copies past fixed heap buffer
  5. Persist
    Corrupt heap metadata
  6. Impact
    Crash or execute code on ESP32

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 the device parse an attacker-influenced audio stream host or URL - specifically a host, request-host, extension, or query_string segment long enough to overflow the fixed heap buffer used by clone_from() after dismantle_host() processes it. The practical limiting factor is delivery of that malicious string: the ESP32 must connect to an attacker-controlled, redirected, or MITM'd streaming endpoint, since URLs are typically developer-configured rather than freely attacker-supplied - so firmware that only ever connects to hard-coded trusted hosts is not realistically reachable. No authentication, user interaction, or non-default configuration on the ESP32 side is otherwise needed (CVSS PR:N/UI:N), and the bug is present in the default parsing path of version 3.4.5.

Impact

The signals are mixed and should be read together rather than trusting the headline CVSS 9.8 alone. The CVSS vector (AV:N/AC:L/PR:N/UI:N) and SSVC (Automatable: yes, Technical Impact: total) argue for high priority, and a heap overflow reachable from the parsed URL/host is genuinely dangerous on an unhardened microcontroller. However, EPSS is very low at 0.18% (8th percentile), SSVC exploitation is 'none', there is no KEV listing and no public exploit identified, indicating exploitation is currently theoretical. Critically, AV:N/PR:N assumes the attacker can freely deliver a malicious host/URL to the device; in practice the URL is usually set by the firmware developer, so remote exploitation realistically requires the ESP32 to connect to an attacker-controlled or attacker-influenced stream server, redirect, or DNS/MITM position - verify this deployment assumption, as it materially lowers real-world reachability versus the raw score. Net: a real memory-safety bug worth patching for any device that fetches untrusted or third-party stream URLs, but not an internet-wide worming threat.

Exploit ScenarioDerived

An attacker operates or hijacks (via DNS spoofing, HTTP redirect, or a MITM position) a web-radio server that an ESP32-audioI2S 3.4.5 device connects to, and returns a response whose host, extension, or query-string segment is far longer than the library's fixed heap buffer. When dismantle_host() parses it and clone_from() copies it, the heap overflows, crashing the device or potentially executing attacker-chosen code. No public exploit is identified at time of analysis, but SSVC marks the technical impact as total and the attack as automatable.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% 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 buffer overflow in schreibfaul1's ESP32-audioI2S library version 3.4.5 lets an attacker who controls the audio stream host or URL corrupt memory on the ESP32 microcontroller. The dismantle_host() parser feeds attacker-supplied host, request-host, extension, and query-string segments into clone_from(), which copies them into fixed-size heap buffers without length checks, enabling potential remote code execution or device crash. Rated CVSS 9.8 with SSVC marking technical impact as total and exploitation as automatable, though EPSS is only 0.18% and there is no public exploit identified at time of analysis.

RemediationAI

No vendor-released patch identified at time of analysis; the references point only to the master source file and a third-party advisory, not a tagged fixed release, so monitor the schreibfaul1/ESP32-audioI2S GitHub repository (https://github.com/schreibfaul1/ESP32-audioI2S) for a release above 3.4.5 and upgrade the library dependency once published. As compensating controls until a fix ships: hard-code or allowlist only trusted stream host/URL values in firmware and refuse dynamically supplied URLs (removes the untrusted-input path at the cost of losing user-configurable stations); enforce a strict maximum length on any host/URL string before passing it to the library so oversized segments are rejected before dismantle_host() runs (trade-off: may truncate legitimately long query strings); pin streaming to HTTPS with certificate validation and avoid HTTP redirects to blunt MITM/redirect-based delivery of a malicious host; and where feasible enable ESP-IDF heap poisoning/heap corruption detection in debug builds to fail fast on overflow. See the advisory at https://github.com/programmervuln/cveadvisory-/blob/main/CVE-2026-51268 and the NVD record for updates.

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 a popular Arduino/PlatformIO C++ library that streams internet audio (HTTP/HTTPS, ICY/Shoutcast, web radio, file playback) to an I2S DAC on Espressif ESP32 microcontrollers. The flaw is a classic CWE-122 heap-based buffer overflow: the URL/host string handed to the streaming client is decomposed by dismantle_host() in src/Audio.cpp into component segments (parsed host, request host, extension, query string), and clone_from() then memcpy/strcpy-style copies each segment into a pre-allocated fixed heap buffer. Because no boundary or length validation is performed before the copy, an oversized segment writes past the allocation, corrupting adjacent heap metadata or objects. On the resource-constrained ESP32 (no ASLR, limited heap hardening, FreeRTOS), such corruption is a strong primitive for control-flow hijack or denial of service.

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 8.1 HIGH

Network-reachable heap overflow with total impact, but AC:H because the attacker must maneuver the device into fetching an attacker-controlled or redirected stream host rather than delivering input directly.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/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 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
Jul 28, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Jul 28, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

schreibfaul1 ESP32-audioI2S 3.4.5 has a heap-based buffer overflow vulnerability in the host parsing logic. The dismantle_host() function parses untrusted host and URL input, and subsequent code uses clone_from() to copy parsed host, request host, extension and query_string segments into fixed heap buffers without boundary checking.

Executive ViewAI

Why It Matters

The ESP32-audioI2S audio streaming library version 3.4.5 contains a critical vulnerability that could allow attackers to remotely execute code or disable connected devices if they can control the audio stream source. Organizations using this library in IoT, embedded systems, or audio applications face risk of device compromise or service disruption, with no vendor security patch currently available. Immediate action is required to identify exposure and implement interim controls before an exploit becomes publicly available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict ESP32 devices to pull audio streams only from hardcoded, trusted internal sources via network firewall rules and URL allowlisting; (2) Implement application-level input validation to sanitize host and URL parameters before passing to the audio library; (3) Establish monitoring and alerting for ESP32 device crashes or unexpected restarts; (4) Consider downgrading to an earlier, unaffected library version if feasible and compatible; (5) Subscribe to vendor security advisories and maintain a patch deployment plan for immediate application when available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche open-source ESP32 hobbyist audio library, no enterprise footprint
Data Quality
6 sources
Confidence: High

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 No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

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.

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