{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-53540 exists.","fix":"No fix has been published for CVE-2025-53540 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-53540 is a high-severity vulnerability in espressif arduino-esp32, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-53540 and fix it if it is affected.\n\nWhat it is: CVE-2025-53540 is a high-severity vulnerability in espressif arduino-esp32, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-53540 exists.\n\nAffected product: espressif arduino-esp32. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-53540/ (Markdown: https://insights.sbomify.com/CVE-2025-53540/index.md)","id":"CVE-2025-53540","markdown":"https://insights.sbomify.com/CVE-2025-53540/index.md","name":"CVE-2025-53540","record":{"aliases":["GHSA-9vfw-wx65-c872"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"ESP32 Arduino core","requires_auth":"none","summary":"Attackers can exploit CSRF in firmware update endpoints to upload and execute arbitrary firmware on ESP32 devices, leading to remote code execution.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"CSRF Vulnerability in Firmware Update Endpoints Allows Remote Code Execution","id":"CVE-2025-53540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"csrf","year":"2025"},"n_packages":0,"n_references":2,"next":{"headline":"Tuleap is vulnerable to XSS attacks when displaying the children of a parent artifact","id":"CVE-2025-53541"},"packages":[],"prev":{"headline":"ReDoS in fastapi-guard's penetration attempts detector","id":"CVE-2025-53539"},"products":["arduino-esp32"],"published":"2025-07-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-07","vendors":["espressif"]},"summary":"Attackers can exploit CSRF in firmware update endpoints to upload and execute arbitrary firmware on ESP32 devices, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2025-53540/"}