Medium severity · published Dec 11, 2024
CVE-2024-53845
AES/CBC Constant IV Vulnerability in ESPTouch v2
6.6
CVSS
0.6%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 48% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
esp-idf · espressif
>= 5.3.0, < 5.3.2; >= 5.2.0, < 5.2.4; >= 5.1.0, < 5.1.6; < 5.0.8 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-53845
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-53845
github.com
https://github.com/EspressifApp/EsptouchForAndroid/tree/master/esptouch-v2
github.com
https://github.com/EspressifApp/EsptouchForIOS/tree/master/EspTouchDemo/ESPTouchV2
github.com
https://github.com/espressif/esp-idf/commit/4f85a2726e04b737c8646d865b44ddd837b703db
github.com
https://github.com/espressif/esp-idf/commit/8fb28dcedcc49916a5206456a3a61022d4302cd8
github.com
https://github.com/espressif/esp-idf/commit/d47ed7d6f814e21c5bc8997ab0bc68e2360e5cb2
github.com
https://github.com/espressif/esp-idf/commit/de69895f38d563e22228f5ba23fffa02feabc3a9
More from esp-idf
9.8
CVE-2025-52471
ESP-NOW Integer Underflow Vulnerability Advisory
9.1
CVE-2025-66409
ESF-IDF has an Out-of-Bounds Read in ESP32 Bluetooth AVRCP Command Handling
8.8
CVE-2026-45328
ESF-IDF: Out-of-Bounds Write in ESP-TEE Secure Service Wrappers
8.8
CVE-2025-55297
ESF-IDF BluFi Example Memory Overflow Vulnerability
8.8
CVE-2024-53406
Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass
