CVE-2024-53845
AES/CBC Constant IV Vulnerability in ESPTouch v2
Mitigation
- Upgrade esp-idf to 5.0.8 or later.
Who should check
- Anyone running espressif esp-idf >= 5.3.0, < 5.3.2; >= 5.2.0, < 5.2.4; >= 5.1.0, < 5.1.6; < 5.0.8
Vulnerability facts
- Affected
- espressif esp-idf >= 5.3.0, < 5.3.2; >= 5.2.0, < 5.2.4; >= 5.1.0, < 5.1.6; < 5.0.8
- Fixed in
- espressif esp-idf 5.3.2, espressif esp-idf 5.2.4, espressif esp-idf 5.1.6, espressif esp-idf 5.0.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.6 (v4.0, CNA)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:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Unreported
- EPSS
- 0.78% chance of exploitation in 30 days (percentile 53, 2026-11-26)
- CWE
- CWE-327, CWE-909
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-53845. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-53845.md Affected: espressif esp-idf >= 5.3.0, < 5.3.2; >= 5.2.0, < 5.2.4; >= 5.1.0, < 5.1.6; < 5.0.8 Fixed in: espressif esp-idf 5.3.2, espressif esp-idf 5.2.4, espressif esp-idf 5.1.6, espressif esp-idf 5.0.8 Steps: 1. Search this machine and project for espressif esp-idf: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2024-53845 being exploited?
There is no confirmed exploitation: CVE-2024-53845 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-53845?
Medium: CVSS 6.6 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-53845?
espressif esp-idf >= 5.3.0, < 5.3.2; >= 5.2.0, < 5.2.4; >= 5.1.0, < 5.1.6; < 5.0.8.
Is there a fix for CVE-2024-53845?
Yes. Fixed in espressif esp-idf 5.3.2, espressif esp-idf 5.2.4, espressif esp-idf 5.1.6, espressif esp-idf 5.0.8. Upgrade esp-idf to 5.0.8 or later.
How do I check if I'm affected by CVE-2024-53845?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.