Skip to main content

ESP-IDF CVE-2026-45329

| EUVDEUVD-2026-35917 MEDIUM
Improper Input Validation (CWE-20)
2026-06-10 GitHub_M
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain code execution in REE on ESP32
  2. Delivery
    Craft pointer arguments aimed at TEE memory
  3. Exploit
    Invoke ESP-TEE secure-service wrapper (AES/SHA/ECC)
  4. Execution
    M-mode peripheral reads TEE-resident bytes
  5. Persist
    Receive raw bytes or oracle bit in REE
  6. Impact
    Iterate calls to reconstruct TEE secrets

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The attacker must already be executing code in the Rich Execution Environment (REE) on an ESP32-family device whose firmware was built from ESP-IDF 5.5.4 or 6.0 with the ESP-TEE subsystem enabled and using the affected secure-service wrappers in esp_secure_services.c / esp_secure_services_iram.c (AES, SHA, ECC, SPI helpers). No authentication to the TEE is required (PR:N) - any REE-side caller can invoke the wrappers - and no user interaction is needed. Exploitation is limited to devices that target RISC-V ESP32 variants supporting ESP-TEE; pure Xtensa builds, builds without ESP-TEE enabled, and devices already upgraded to 5.5.5 or 6.0.1 are not exploitable. Realistic risk is further bounded by needing prior REE code execution and by the fact that some wrappers leak only one bit per call, requiring many invocations to recover a useful secret.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N gives a base score of 7.1 driven by changed scope and high confidentiality impact, with no impact to integrity or availability - consistent with an information-disclosure oracle against TEE secrets rather than code execution or denial of service. Attack vector is Local (AV:L), meaning the adversary must already be running code in the REE on the target ESP32 device (e.g., compromised application firmware or a malicious component invoking secure-service syscalls); this substantially limits remote exploitability and rules out network-only attacks. EPSS, KEV, and SSVC data were not provided, and no public exploit code was identified at time of analysis, suggesting this is not currently a mass-exploitation candidate; however, the issue is a real priority for any deployment that relies on ESP-TEE to protect keys, secure-boot material, NVS encryption keys, or attestation secrets because the oracle pattern enables incremental recovery even when only one bit leaks per call. PR:N is somewhat counterintuitive for a local attack and reflects that any REE-side caller - not just a privileged one - can invoke the wrappers; defenders should read this as 'any REE code path' rather than 'unauthenticated network attacker'.

Exploit ScenarioDerived

An attacker who has already achieved code execution in the REE on an ESP32 device (e.g., via a vulnerable network service in the application firmware or a malicious update) invokes the ESP-TEE secure-service wrapper for SHA or AES, supplying an 'input' pointer that points into TEE-exclusive memory holding signing keys or NVS encryption material. The M-mode peripheral dutifully reads from the TEE address and returns either raw bytes, a hash derived from them, or a single result bit; by repeating the call with shifted pointers the attacker reconstructs the secret byte-by-byte. No public PoC has been published, but the patch commits clearly identify the vulnerable parameter set, making targeted exploit development by an attacker with REE code execution straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 10, 2026

Information disclosure in Espressif ESP-IDF 5.5.4 and 6.0 allows local code in the Rich Execution Environment (REE) to leak TEE-protected memory by passing crafted pointer arguments to ESP-TEE secure-service wrappers. Because TEE hardware peripherals (ECC, SHA, SPI) run in RISC-V M-mode with full address-space access, attackers can coerce them to read from TEE-exclusive memory and return raw bytes, computed functions, or single-bit oracles enabling incremental disclosure of sensitive material. No public exploit identified at time of analysis; vendor-released patches exist in 5.5.5 and 6.0.1.

RemediationAI

Upgrade to ESP-IDF 5.5.5 (from the 5.5.x branch) or 6.0.1 (from the 6.0.x branch) and rebuild and reflash all firmware images that include the ESP-TEE component; the fixes in commits 145ba4c42dc8283054cfde9a1c3470db7399192f, 7867f4a57560bf9fc4a931e37ba02b7a3e9f406b, and eebabaff2fdc273b1530fe66e55fb3bcd181dfd6 replace the partial esp_tee_ptr_in_ree() endpoint checks with full esp_tee_buf_in_ree(buf, size) range checks on every pointer argument and add a missing rel_offset/size overflow check in esp_tee_ota_write. Consult the vendor advisory at https://github.com/espressif/esp-idf/security/advisories/GHSA-w82j-7q63-7pqm for the authoritative version matrix. If a fleet-wide OTA cannot be performed immediately, compensating controls are limited because the wrappers are core TEE syscalls: where feasible, minimize use of the affected AES, SHA, ECC, and SPI secure services from REE code paths, audit REE applications to ensure only trusted components issue these calls, and treat any TEE-resident secret as potentially exposed on unpatched devices when planning key rotation - note that disabling the secure services entirely will break legitimate TEE-backed cryptography and is not a practical workaround.

Affected VersionsENISA

esp-idf = 6.0
esp-idf = 5.5.4

Affected Packages

euvd esp_idf no fix

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-IDF is Espressif's official IoT development framework for ESP32-family microcontrollers, providing FreeRTOS-based firmware libraries and the ESP-TEE (Trusted Execution Environment) subsystem that isolates security-sensitive code from the general-purpose REE on RISC-V variants. The vulnerable code lives in components/esp_tee/subproject/main/core/esp_secure_services.c and esp_secure_services_iram.c, which expose secure-service wrappers (e.g., _ss_esp_aes_crypt_cbc, _ss_esp_aes_crypt_ctr, SHA, ECC, SPI helpers) that the REE invokes to use TEE-owned hardware peripherals. The root cause maps to CWE-20 (Improper Input Validation): the original wrappers only checked endpoint pointers (input, output, input+length) with esp_tee_ptr_in_ree() and missed several caller-supplied pointer arguments (ctx, iv, iv_off, nonce_counter, stream_block, etc.); the fix replaces these with esp_tee_buf_in_ree(buf, size) range checks across every pointer parameter so a buffer that overlaps TEE memory is rejected before the M-mode peripheral DMAs against it.

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

NVD PRIMARY 6.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Severity Changed
Jun 11, 2026 - 18:07 NVD
HIGH MEDIUM
CVSS changed
Jun 11, 2026 - 18:07 NVD
7.1 (HIGH) 6.5 (MEDIUM)

DescriptionNVD

ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.5.4 and 6.0, several ESP-TEE secure-service wrappers in esp_secure_services.c and esp_secure_services_iram.c validated only some of the caller-supplied pointer arguments, leaving input pointer arguments unchecked. Because the underlying TEE-protected hardware peripherals (e.g., ECC, SHA, SPI) run in RISC-V machine mode (M-mode) with full address-space access, a caller could supply pointers into TEE-exclusive memory as inputs, causing the peripheral to read TEE memory and return results derived from it to the REE. Depending on the wrapper, the result contains raw bytes from TEE memory, a computed function of TEE memory recoverable through repeated calls, or a single bit per call that forms an oracle for incremental disclosure of TEE-resident sensitive data. This issue has been patched in versions 5.5.5 and 6.0.1.

Executive ViewAI

Why It Matters

A high-severity information disclosure vulnerability in Espressif ESP-IDF 5.5.4 and 6.0 permits local code to bypass Trusted Execution Environment (TEE) memory isolation and extract sensitive data including cryptographic keys and protected computation results. Organizations deploying affected versions in embedded and IoT systems face unauthorized exposure of confidential material. Immediate patching to ESP-IDF 5.5.5 or 6.0.1 is required to restore security boundaries.

Business Impact: High
Compensating Controls

Apply vendor patch: Espressif ESP-IDF 5.5.5 or 6.0.1. No interim mitigations available; patching is mandatory to restore TEE memory isolation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
Small
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

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

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

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