Anti Rollback bypass with physical access and TOCTOU attack
CVE-2024-28183Published 25 Mar 2024, 14:31 UTC
Real-world risk
0.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.1
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)
ESP-IDF is the development framework for Espressif SoCs supported on Windows, Linux and macOS. A Time-of-Check to Time-of-Use (TOCTOU) vulnerability was discovered in the implementation of the ESP-IDF bootloader which could allow an attacker with physical access to flash of the device to bypass anti-rollback protection. Anti-rollback prevents rollback to application with security version lower than one programmed in eFuse of chip. This attack can allow to boot past (passive) application partition having lower security version of the same device even in the presence of the flash encryption scheme. The attack requires carefully modifying the flash contents after the anti-rollback checks have been performed by the bootloader (before loading the application). The vulnerability is fixed in 4.4.7 and 5.2.1.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| esp-idfNiche | < 4.4.7; >= 5.0, <= 5.0.6; >= 5.1, <= 5.1.3; >= 5.2, < 5.2.1 | 4.4.7, 5.2.1 |
What to do
Update to a fixed version: 4.4.7, 5.2.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | PhysicalMust touch the device | From the CVSS vector | 0.10 |
| 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 14), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.100
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.1 × threat 0.850.680
- Rounded to one decimal between 0.1 and 100.7
Exploitation and evidence timeline
- 25 Mar 2024 Published
- 3 Dec 2026 Risk 0.7 (cvss fallback)
Weakness
CWE-367
References
- https://github.com/espressif/esp-idf/security/advisories/GHSA-22x6-3756-pfp8vendor-advisory, x-transferred
- https://github.com/espressif/esp-idf/commit/3305cb4d235182067936f8e940e6db174e25b4b2misc, x-transferred
- https://github.com/espressif/esp-idf/commit/4c95aa445d4e84f01f86b6f3a552aa299276abf3misc, x-transferred
- https://github.com/espressif/esp-idf/commit/534e3ad1fa68526a5f989fb2163856d6b7cd2c87misc, x-transferred
- https://github.com/espressif/esp-idf/commit/7003f1ef0dffc73c34eb153d1b0710babb078149misc, x-transferred
- https://github.com/espressif/esp-idf/commit/b2cdc0678965790f49afeb6e6b0737cd24433a05misc, x-transferred
- https://github.com/espressif/esp-idf/commit/c33b9e1426121ce8cccf1a94241740be9cff68demisc, x-transferred
- https://github.com/espressif/esp-idf/commit/f327ddf6adab0c28d395975785727b2feef57803misc, x-transferred
- CVE-2024-28183 on CVE.org