Time-of-Check Time-of-Use (TOCTOU) Race Condition Affecting espressif/esp-idf package, versions [4.4.6,4.4.7)[5.2,5.2.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ESPRESSIFESPIDF-6504181
  • published27 Mar 2024
  • disclosed25 Mar 2024
  • creditJoseph Surin, elttam

Introduced: 25 Mar 2024

CVE-2024-28183  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade espressif/esp-idf to version 4.4.7, 5.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-Check Time-of-Use (TOCTOU) Race Condition due to the incorrect implementation of the bootloader. An attacker with physical access can modify the flash contents after the anti-rollback checks have been performed but before the application is loaded.

This allows the attacker to bypass anti-rollback protection, which is designed to prevent the device from booting from an application partition with a security version lower than the one programmed in the eFuse of the chip, even in the presence of the flash encryption scheme.

CVSS Scores

version 3.1