ESF-IDF: Unvalidated Stack Pointer at the ESP-TEE Privilege-Switch Boundary
CVE-2026-113780Published 4 Nov 2026, 19:04 UTC
Real-world risk
4.3/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| esp-idfNiche | < 5.5.6; >= 6.0.0, < 6.0.4; >= 6.1.0, < 6.1.1 | 5.5.6, 6.0.4, 6.1.1 |
What to do
Update to a fixed version: 5.5.6, 6.0.4, 6.1.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 8), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.5 × threat 0.854.250
- Rounded to one decimal between 0.1 and 104.3
Exploitation and evidence timeline
- 4 Nov 2026 Published
- 3 Dec 2026 Risk 4.3 (cvss fallback)
Weakness
CWE-787, CWE-822
References
- https://github.com/espressif/esp-idf/security/advisories/GHSA-49x8-xqjg-2pjgvendor-advisory
- https://github.com/espressif/esp-idf/commit/773761abb893d43d0a5b8b75ec0a1c2cf0287d53misc
- https://github.com/espressif/esp-idf/commit/acb7d996b07293abf591b93f4aaffa04ae6732d9misc
- https://github.com/espressif/esp-idf/commit/b85a7b0e1449ac9aec30a0c3e3b6515725556fd1misc
- https://github.com/espressif/esp-idf/commit/dabd37fae8d2a7b1cc71f48fce824b0b9d909a07misc
- https://github.com/espressif/esp-idf/releases/tag/v5.5.6misc
- CVE-2026-113780 on CVE.org