CVE-2024-53845

AES/CBC Constant IV Vulnerability in ESPTouch v2

State
Published
Severity
6.6 Medium
Published
Dec 11, 2024
Updated
Dec 12, 2024
Reserved
Nov 22, 2024

Read the record on cve.org

Description

ESPTouch is a connection protocol for internet of things devices. In the ESPTouchV2 protocol, while there is an option to use a custom AES key, there is no option to set the IV (Initialization Vector) prior to versions 5.3.2, 5.2.4, 5.1.6, and 5.0.8. The IV is set to zero and remains constant throughout the product's lifetime. In AES/CBC mode, if the IV is not properly initialized, the encrypted output becomes deterministic, leading to potential data leakage. To address the aforementioned issues, the application generates a random IV when activating the AES key starting in versions 5.3.2, 5.2.4, 5.1.6, and 5.0.8. This IV is then transmitted along with the provision data to the provision device. The provision device has also been equipped with a parser for the AES IV. The upgrade is applicable for all applications and users of ESPTouch v2 component from ESP-IDF. As it is implemented in the ESP Wi-Fi stack, there is no workaround for the user to fix the application layer without upgrading the underlying firmware.

Scores

CVSSScoreVectorSource
4.06.6 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:UGitHub_M

Weaknesses

  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm
  • CWE-909 Missing Initialization of Resource

Affected Products

ProductVersions
esp-idfespressif
  • >= 5.3.0, < 5.3.2Affected
  • >= 5.2.0, < 5.2.4Affected
  • >= 5.1.0, < 5.1.6Affected
  • < 5.0.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.