CVE-2025-27840
Espressif ESP32 chips allow 29 hidden HCI commands, such as 0xFC02 (Write memory).
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Espressif ESP32 2025-03-06
Vulnerability facts
- Affected
- Espressif ESP32 2025-03-06
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.8 (v3.1, CNA)CVSS:3.1/AV:P/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Physical
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- EPSS
- 1.03% chance of exploitation in 30 days (percentile 63, 2026-11-26)
- CWE
- CWE-912
- Modified
Description
Espressif ESP32 chips allow 29 hidden HCI commands, such as 0xFC02 (Write memory).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Espressif ESP32 | 2025-03-06 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-27840. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-27840.md Affected: Espressif ESP32 2025-03-06 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Espressif ESP32: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Exploits and PoCs
Other
- https://github.com/TarlogicSecurity/Talks/blob/main/2025_RootedCon_BluetoothTools.pdf
- https://x.com/pascal_gujer/status/1898442439704158276
- https://www.tarlogic.com/news/backdoor-esp32-chip-infect-ot-devices/
- https://reg.rootedcon.com/cfp/schedule/talk/5
- https://flyingpenguin.com/?p=67838
- https://github.com/em0gi/CVE-2025-27840
- https://github.com/orgs/espruino/discussions/7699
- https://news.ycombinator.com/item?id=43308740
- https://news.ycombinator.com/item?id=43301369
- https://github.com/esphome/esphome/discussions/8382
- https://cheriot.org/auditing/backdoor/2025/03/09/no-esp32-style-backdoor.html
FAQ
Is CVE-2025-27840 being exploited?
There is no confirmed exploitation: CVE-2025-27840 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-27840?
Medium: CVSS 6.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-27840?
Espressif ESP32 2025-03-06.
Is there a fix for CVE-2025-27840?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-27840?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.