Remote code execution via forged firmware updates
Published Jul 7, 2025 · Updated Jul 7, 2025
CSRF in Arduino-ESP32 before 3.2.1 allows remote attackers to execute arbitrary firmware through a forged update request. The /update POST handlers in HTTPUpdateServer and two OTA examples accept firmware uploads without validating Origin against Host or using an anti-CSRF token. Exploitation requires a user on the device's local network to visit attacker-controlled web content; a successful upload replaces and runs device firmware.
Summary
What happened
CSRF in Arduino-ESP32 before 3.2.1 allows remote attackers to execute arbitrary firmware through a forged update request. The /update POST handlers in HTTPUpdateServer and two OTA examples accept firmware uploads without validating Origin against Host or using an anti-CSRF token. Exploitation requires a user on the device's local network to visit attacker-controlled web content; a successful upload replaces and runs device firmware.
The record
- CVE
- CVE-2025-53540
- Published
- Jul 7, 2025
- Updated
- Jul 7, 2025
- Vendor
- Espressif Systems
- Product
- Arduino-ESP32
- Classifications
- CWE-352, T1601.001, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 7, 2025CVE publishedPublication date reported by the CVE source.
- Jul 7, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 3.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-9vfw-wx65-c872 CSRF proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo