CVE-2024-53845 AES/CBC Constant IV Vulnerability in ESPTouch v2

Medium 6.6 Published Updated

Attackers can decrypt ESPTouch v2 provisioning data due to a constant zero IV, exposing sensitive IoT configuration information.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-53845?

CVE-2024-53845 is a medium-severity vulnerability in espressif esp-idf, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-909, CWE-327

Which versions are affected by CVE-2024-53845?

How do I fix CVE-2024-53845?

No fix has been published for CVE-2024-53845 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-53845 being exploited?

There is no known exploitation of CVE-2024-53845 in the wild and no public exploit code.

Sources

Also known as GHSA-wm57-466g-mhrr.

Is CVE-2024-53845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free