Skip to main content

Espressif ESP-IDF EUVDEUVD-2026-117053

| CVE-2026-113780 CRITICAL
Out-of-bounds Write (CWE-787)
2026-11-04 GitHub_M
9.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain local unprivileged REE code execution
  2. Delivery
    Craft stack pointer into TEE-exclusive memory
  3. Exploit
    Invoke secure-service ecall or interrupt entry
  4. Execution
    M-mode trap writes register frame through pointer
  5. Persist
    Corrupt TEE control-flow data
  6. Impact
    Execute code in TEE / crash device

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires a device built on ESP-IDF 5.5.5 (or 6.0.3 / 6.1 branches before the fix) with the ESP-TEE component enabled on one of the affected RISC-V SoCs: ESP32-C5, ESP32-C6, ESP32-C61, or ESP32-H2. The attacker must already have local unprivileged code execution in the REE in order to issue the secure-service ecall or reach the interrupt entry path; no TEE privileges are needed (PR:N). Both the user ecall entry and interrupt entry paths are vulnerable. Limiting factors: exploitation is local only (not network-reachable), is confined to devices that actually deploy ESP-TEE, and the vendor states there is no runtime workaround - only updating to a fixed release or cherry-picking the fix commit removes the flaw.

Impact

This is a genuine high-priority issue, not an inflated CVSS score. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, 9.3) describes a low-complexity, no-privilege-required flaw whose scope change (S:C) reflects the core danger: an unprivileged REE (Rich Execution Environment) application crosses the hardware security boundary into the trusted M-mode TEE. The GHSA advisory confirms the mechanism - the trap entry saves a caller-controlled register frame through an REE-supplied stack pointer before validating it, yielding an arbitrary machine-mode write into TEE-exclusive memory. The vuln.today Decision label is act_now, consistent with the CVSS severity and the boundary-breaking impact. The key tempering factor is AV:L: the attacker must already hold local code execution in the REE, so this is a privilege-escalation/isolation-defeat primitive rather than a remotely reachable entry point. No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact breakdown were provided in the input; absence of KEV/EPSS data means exploitation probability cannot be quantified here. All five references are the vendor advisory, fix commits, and release tag - there is no public working exploit and no active-exploitation signal, so current risk is driven by severity and the act_now vendor priority rather than observed in-the-wild use.

Exploit ScenarioDerived

An attacker who has already achieved local unprivileged code execution in the REE (for example via a compromised application on an ESP32-C6 device) supplies a crafted stack pointer that points into TEE-exclusive SRAM, then issues a secure-service ecall or triggers an interrupt. The M-mode trap entry writes the register frame through that pointer before validating it, corrupting TEE control-flow data that the TEE later dereferences, escalating from the REE into arbitrary code execution inside the TEE. No public exploit code is referenced in the input, and exploitation requires local REE access (AV:L), which raises the bar above a remote attack.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 04, 2026

Isolation-boundary escape on Espressif ESP32-C5, ESP32-C6, ESP32-C61 and ESP32-H2 devices running ESP-IDF with the ESP-TEE component enabled: the RISC-V machine-mode trap entry in esp_tee_vectors_plic.S and esp_tee_vectors_clic.S saves the caller's register frame through the REE-supplied stack pointer before switching to the trusted stack, so unprivileged local code can aim that machine-mode write into TEE-exclusive memory. The outcome is corruption of TEE-resident control-flow data with potential code execution inside the TEE, denial of service or system crashes; the CVSS vector carries PR:N (no privileges required) but exploitation is strictly local, requiring the attacker to already hold unprivileged code execution in the REE. No public exploit identified at time of analysis, and the vendor states there is no runtime workaround, so moving to ESP-IDF 5.5.6 (with 6.0.4 and 6.1.1 pending release) or cherry-picking the listed fix commits is the only remedy.

RemediationAI

Vendor-released patch: ESP-IDF v5.5.6 (release tag https://github.com/espressif/esp-idf/releases/tag/v5.5.6), where the trap entry validates the REE-supplied stack pointer at the privilege-switch boundary before any register context is saved through it. The 6.0.4 and 6.1.1 releases carrying the fix are scheduled but not yet published, so downstream branches should cherry-pick the per-branch fix commits: dabd37fae8d2a7b1cc71f48fce824b0b9d909a07 (release/v5.5), b85a7b0e1449ac9aec30a0c3e3b6515725556fd1 (release/v6.0), 773761abb893d43d0a5b8b75ec0a1c2cf0287d53 (release/v6.1) and acb7d996b07293abf591b93f4aaffa04ae6732d9 (master). The vendor explicitly states there is no runtime workaround for this issue: because the flaw lives in the M-mode trap entry that runs before any software check, disabling or reconfiguring secure services does not close it, and only updating to a fixed release or applying the commit removes it. Given the act-now priority rating and the S:C scope change that breaks REE/TEE isolation, treat devices with ESP-TEE enabled as requiring immediate version inventory and rebuild. Advisory: https://github.com/espressif/esp-idf/security/advisories/GHSA-49x8-xqjg-2pjg.

Affected VersionsENISA

esp-idf 6.1.0, < 6.1.1
esp-idf 6.0.0, < 6.0.4
esp-idf < 5.5.6

Affected Packages

euvd esp_idf fix: 5.5.6, 6.0.4, 6.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

ESP-TEE is the RISC-V trusted execution environment shipped in Espressif's ESP-IDF, splitting the SoC between a rich execution environment (REE, user applications) and a trusted execution environment (TEE) that owns machine-mode (M-mode) privilege and full address-space access. Calls from the REE into the TEE pass through M-mode trap vectors implemented in assembly in components/esp_tee/subproject/main/arch/riscv/esp_tee_vectors_plic.S and esp_tee_vectors_clic.S. In affected builds the trap entry pushed the incoming register frame onto the caller-supplied stack pointer (sp) before the privilege switch to the trusted TEE stack and before any validation of that pointer, an untrusted-pointer-dereference / out-of-bounds write pattern (CWE-822 and CWE-787). Because the vector executes in M-mode, an sp pointing into TEE-exclusive SRAM turns the register save into an arbitrary machine-mode write; the TEE region sits at the bottom of SRAM, so the fixed code (the new VALIDATE_REE_SP macro in esp_tee_asm_utils.inc) requires the REE frame [sp - framesz, sp) to fall between SOC_S_DRAM_END + framesz and SOC_PERIPHERAL_LOW, rejecting anything whose save frame would overlap TEE memory and terminating the call via _tee_sp_reject into the trusted-stack panic handler. Both the user ecall path and the interrupt entry path were vulnerable, and the same vector file previously used the stack to preserve t0/t1 before it had validated the stack, which the patch replaces with mscratch save/restore. The commit also introduces the _ns_int_rtn sentinel to track U-mode interrupt returns, which the secure-service ecall path consumes.

Know when Esp Idf 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 (GitHub_M) PRIMARY 9.3 CRITICAL
AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.3 CRITICAL

Local REE code execution needed (AV:L) with no TEE privileges or user interaction (PR:N/UI:N); the REE-to-TEE boundary crossing is a scope change (S:C) with full C/I/A loss in the TEE.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 04, 2026 - 20:18 EUVD
CVE Published
Nov 04, 2026 - 19:04 cve.org
CRITICAL 9.3

DescriptionCVE.org

ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. From 5.5.5 until 5.5.6, 6.0.4, and 6.1.1, the esp_tee trap entry in esp_tee_vectors_plic.S and esp_tee_vectors_clic.S saves a caller-controlled register frame through the REE-supplied stack pointer before switching to the trusted TEE stack or validating the pointer. A local unprivileged REE application can direct this machine-mode write into TEE-exclusive memory on ESP32-C5, ESP32-C6, ESP32-C61, and ESP32-H2 devices, breaking the REE/TEE isolation boundary and potentially corrupting TEE control-flow data for code execution, denial of service, or system crashes. Both secure-service ecall and interrupt entry paths contain the vulnerable ordering. This issue is fixed in version 5.5.6 and is scheduled to be fixed in versions 6.0.4 and 6.1.1.

Technical POC Analysis

Bug class: CWE-787 Out-of-bounds Write, with CWE-822 Untrusted Pointer Dereference as the enabling flaw.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-113780 (CVSS 9.3) is a critical isolation-boundary escape in the ESP-TEE component of Espressif ESP32-C5, ESP32-C6, ESP32-C61, and ESP32-H2 devices. An attacker with unprivileged local code execution in the REE can corrupt TEE-resident control-flow data, leading to code execution inside the TEE, denial of service, or system crashes. This undermines the foundational trust boundary of affected products, so security leadership must prioritize remediation to protect intellectual property, cryptographic keys, and sensitive data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; no runtime workaround exists. Interim mitigations include restricting local code execution on REE-side components through strict access controls, disabling ESP-TEE if not essential, and network segmentation to limit attacker reach. Apply vendor patch when available.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
ESP32 chips common in IoT, but ESP-TEE feature on four specific SoCs
Social Media
1
Sightings
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 No
EPSS 0.1%
Patch available Yes
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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.

CVE-2024-53406 HIGH POC
8.8 Mar 13

Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass. Rated high severity (

CVE-2019-12587 HIGH POC
8.1 Sep 04

The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 allows th

CVE-2020-12638 MEDIUM POC
6.8 Jul 23

An encryption-bypass issue was discovered on Espressif ESP-IDF devices through 4.2, ESP8266_NONOS_SDK devices through 3.

CVE-2024-33454 MEDIUM POC
6.5 May 14

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to execute arbitrary code via a crafted script t

CVE-2019-12586 MEDIUM POC
6.5 Sep 04

The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 processes

CVE-2025-52471 CRITICAL
9.8 Jun 24

A security vulnerability in the ESP-NOW protocol implementation within the ESP Wi-Fi component of (CVSS 9.8). Critical s

CVE-2026-45328 HIGH
8.8 Jun 10

Privilege escalation from REE to TEE in Espressif ESP-IDF 5.5.4 and 6.0 lets a low-privileged user-application caller ab

CVE-2022-24893 HIGH
8.8 Jun 25

ESP-IDF is the official development framework for Espressif SoCs. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2021-28139 HIGH
8.8 Sep 07

The Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier does not properly restrict the Feature Page up

CVE-2024-33453 HIGH
8.1 Oct 17

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to obtain sensitive information via the external

CVE-2026-55687 HIGH
7.5 Jul 10

Denial of service in Espressif's ESP-IDF JPEG driver (versions 6.0.1, 5.5.4, 5.4.4, 5.3.5 and likely earlier) stems from

CVE-2026-45541 HIGH
7.5 Jun 10

Remote denial-of-service in Espressif ESP-IDF's esp_http_server WebSocket handshake allows unauthenticated attackers to

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