# CVE-2025-27840: Espressif ESP32 chips allow 29 hidden HCI commands, such as 0xFC02 (Write memory).

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:P/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.03% (percentile 63, 2026-11-26)
- **CWE:** CWE-912
- **Published:** 2025-03-08T00:00:00.000Z
- **Modified:** 2026-06-17T09:04:19.343Z

## Who should check

- Anyone running Espressif ESP32 2025-03-06

## Description

Espressif ESP32 chips allow 29 hidden HCI commands, such as 0xFC02 (Write memory).

## Affected and fixed versions

- Espressif ESP32: 2025-03-06 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- exploit: <https://www.bleepingcomputer.com/news/security/undocumented-backdoor-found-in-bluetooth-chip-used-by-a-billion-devices/>
- exploit: <https://www.bleepingcomputer.com/news/security/undocumented-commands-found-in-bluetooth-chip-used-by-a-billion-devices/>
- exploit: <https://darkmentor.com/blog/esp32_non-backdoor/>
- article: <https://www.espressif.com/en/news/Response_ESP32_Bluetooth>
- other: <https://github.com/TarlogicSecurity/Talks/blob/main/2025_RootedCon_BluetoothTools.pdf>
- other: <https://x.com/pascal_gujer/status/1898442439704158276>
- other: <https://www.tarlogic.com/news/backdoor-esp32-chip-infect-ot-devices/>
- other: <https://reg.rootedcon.com/cfp/schedule/talk/5>
- other: <https://flyingpenguin.com/?p=67838>
- other: <https://github.com/em0gi/CVE-2025-27840>
- other: <https://github.com/orgs/espruino/discussions/7699>
- other: <https://news.ycombinator.com/item?id=43308740>
- other: <https://news.ycombinator.com/item?id=43301369>
- other: <https://github.com/esphome/esphome/discussions/8382>
- other: <https://cheriot.org/auditing/backdoor/2025/03/09/no-esp32-style-backdoor.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27840>

HTML: <https://flawdb.com/CVE-2025-27840> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27840>
