CVE-2024-53845
published medium CVSS 4.0 · 6.6AES/CBC Constant IV Vulnerability in ESPTouch v2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| espressif | — | esp-idf>= 5.3.0, < 5.3.2 · >= 5.2.0, < 5.2.4 · >= 5.1.0, < 5.1.6 · < 5.0.8 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS: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:U
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| espressif | esp-idf | >= 5.3.0, < 5.3.2 (affected)>= 5.2.0, < 5.2.4 (affected)>= 5.1.0, < 5.1.6 (affected)< 5.0.8 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-327 CWE-327: Use of a Broken or Risky Cryptographic Algorithm
- CWE-909 CWE-909: Missing Initialization of Resource
References
9- https://github.com/EspressifApp/EsptouchForAndroid/tree/master/esptouch-v2
- https://github.com/EspressifApp/EsptouchForIOS/tree/master/EspTouchDemo/ESPTouchV2
- https://github.com/espressif/esp-idf/commit/4f85a2726e04b737c8646d865b44ddd837b703db
- https://github.com/espressif/esp-idf/commit/8fb28dcedcc49916a5206456a3a61022d4302cd8
- https://github.com/espressif/esp-idf/commit/d47ed7d6f814e21c5bc8997ab0bc68e2360e5cb2
- https://github.com/espressif/esp-idf/commit/de69895f38d563e22228f5ba23fffa02feabc3a9
- https://github.com/espressif/esp-idf/commit/fd224e83bbf133833638b277c767be7f7cdd97c7
- https://github.com/espressif/esp-idf/security/advisories/GHSA-wm57-466g-mhrr
- https://github.com/espressif/esp-idf/tree/master/components/esp_wifi
Provider assertions
2GitHub_M · cna
AES/CBC Constant IV Vulnerability in ESPTouch v2
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0659de42129134dd08980b53373686998c2aa05cc4cdf132fb7621db7328e3c0
- Ingested
- 23 Sep 2026, 08:31:11 UTC
- Source record
- Official CVE record