Skip to content
OpenAdvisories
High · 8.7 CVE-2025-53540 EUVD-2025-20306

CSRF Vulnerability in Firmware Update Endpoints Allows Remote Code Execution

Published Jul 7, 2025 · Updated Jul 7, 2025 · Assigned by GitHub_M

Description

arduino-esp32 is an Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2 microcontrollers. Several OTA update examples and the HTTPUpdateServer implementation are vulnerable to Cross-Site Request Forgery (CSRF). The update endpoints accept POST requests for firmware uploads without CSRF protection. This allows an attacker to upload and execute arbitrary firmware, resulting in remote code execution (RCE). This vulnerability is fixed in 3.2.1.

Affected products

VendorProductAffectedFixed
espressif arduino-esp32 < 3.2.1 —

References