CVE-2024-28183
Anti Rollback bypass with physical access and TOCTOU attack
Check your servers for CVE-2024-28183
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-28183 affects esp-idf, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- physical: the attacker has to touch the device
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.3% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 25 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| esp-idf |
affected < 4.4.7 affected >= 5.0, <= 5.0.6 affected >= 5.1, <= 5.1.3 affected >= 5.2, < 5.2.1
|
Is my server affected?
Find the installed version of esp-idf and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i esp-idf
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-28183 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-28183RHEL, Rocky, Alma, Fedora
rpm -q esp-idf
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-28183Alpine
apk list --installed | grep -i esp-idfWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-28183
trivy image --scanners vuln IMAGE | grep CVE-2024-28183
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/espressif/esp-idf/commit/3305cb4d235182067936f8e940e6db174e25b4b2 github.com
- https://github.com/espressif/esp-idf/commit/4c95aa445d4e84f01f86b6f3a552aa299276abf3 github.com
- https://github.com/espressif/esp-idf/commit/534e3ad1fa68526a5f989fb2163856d6b7cd2c87 github.com
- https://github.com/espressif/esp-idf/commit/7003f1ef0dffc73c34eb153d1b0710babb078149 github.com
- https://github.com/espressif/esp-idf/commit/b2cdc0678965790f49afeb6e6b0737cd24433a05 github.com
- https://github.com/espressif/esp-idf/commit/c33b9e1426121ce8cccf1a94241740be9cff68de github.com
- https://github.com/espressif/esp-idf/commit/f327ddf6adab0c28d395975785727b2feef57803 github.com
Source: the record CVE-2024-28183 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse