CVE-2025-53540: CSRF Vulnerability in Firmware Update Endpoints Allows Remote Code Execution

Published Jul 7, 2025
·
Updated

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 Software

1 affected component
Arduino arduino-esp32<3.2.1

Event History

Jul 7, 2025
CVE Published
via MITRE·07:26 PM
Data Sourced
via MITRE·07:26 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-53540?

CVE-2025-53540 is classified as a medium severity vulnerability due to its potential for Cross-Site Request Forgery (CSRF) attacks.

2

How do I fix CVE-2025-53540?

To fix CVE-2025-53540, upgrade to a version of arduino-esp32 that is newer than 3.2.1 where the CSRF vulnerabilities have been patched.

3

What are the affected versions of arduino-esp32 for CVE-2025-53540?

The affected versions of arduino-esp32 for CVE-2025-53540 are those up to but not including version 3.2.1.

4

What kind of attack does CVE-2025-53540 enable?

CVE-2025-53540 enables Cross-Site Request Forgery (CSRF) attacks that could allow unauthorized actions on behalf of an authenticated user.

5

Which components are vulnerable in CVE-2025-53540?

The vulnerable components in CVE-2025-53540 include several OTA update examples and the HTTPUpdateServer implementation in arduino-esp32.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203