CVE-2025-27840 Security feature bypass in ESP32

Medium 6.8 Published Updated

Hidden HCI commands in Espressif ESP32 chips allow attackers to write memory, potentially enabling code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-27840?

CVE-2025-27840 is a medium-severity vulnerability in Espressif ESP32, published on 8 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-912

Which versions are affected by CVE-2025-27840?

It affects 1 product.

Products include Espressif Esp32 Firmware.

How do I fix CVE-2025-27840?

No fix has been published for CVE-2025-27840 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-27840 being exploited?

There is no known exploitation of CVE-2025-27840 in the wild and no public exploit code.

Public exploit code: 4 proofs of concept on GitHub.

Sources

Also known as GHSA-jfwf-rfmg-7f8m.

Is CVE-2025-27840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free