1.7low
ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component
- Severity
- 1.7low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4h3h-63v6-88qxPYSEC-2026-1326
Description
ESPHome is a system to control microcontrollers remotely through Home Automation systems. In versions 2025.9.0 through 2025.12.6, an integer overflow in the API component's protobuf decoder allows denial-of-service attacks when API encryption is not used. The bounds check `ptr + field_length > end` in `components/api/proto.cpp` can overflow when a malicious client sends a large `field_length` value. This affects all ESPHome device platforms (ESP32, ESP8266, RP2040, LibreTiny). The overflow bypasses the out-of-bounds check, causing the device to read invalid memory and crash. When using the plaintext API protocol, this attack can be performed without authentication. When noise encryption is enabled, knowledge of the encryption key is required. Users should upgrade to ESPHome 2025.12.7 or later to receive a patch, enable API encryption with a unique key per device, and follow the Security Best Practices.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| esphome esphome | >= 2025.9.0, < 2025.12.7, from 2025.9.0 before 2025.12.7 | CVE List, NVD |
| esphome (PyPI) | from 2025.9.0 before 2025.12.7 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 1.7low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:A/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:A/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
ESPHome is a system to control microcontrollers remotely through Home Automation systems. In versions 2025.9.0 through 2025.12.6, an integer overflow in the API component's protobuf decoder allows denial-of-service attacks when API encryption is not used. The bounds check `ptr + field_length > end` in `components/api/proto.cpp` can overflow when a malicious client sends a large `field_length` value. This affects all ESPHome device platforms (ESP32, ESP8266, RP2040, LibreTiny). The overflow bypasses the out-of-bounds check, causing the device to read invalid memory and crash. When using the plaintext API protocol, this attack can be performed without authentication. When noise encryption is enabled, knowledge of the encryption key is required. Users should upgrade to ESPHome 2025.12.7 or later to receive a patch, enable API encryption with a unique key per device, and follow the Security Best Practices.
GitHub Advisory Database
Summary
An integer overflow in the API component's protobuf decoder allows denial-of-service attacks when API encryption is not used.
Details
The bounds check ptr + field_length > end in components/api/proto.cpp can overflow when a malicious client sends a large field_length value. This affects all ESPHome device platforms (ESP32, ESP8266, RP2040, LibreTiny). The overflow bypasses the out-of-bounds check, causing the device to read invalid memory and crash.
When using the plaintext API protocol, this attack can be performed without authentication. When noise encryption is enabled, knowledge of the encryption key is required.
Affected Versions
ESPHome 2025.9.0 through 2025.12.6
Mitigation
- Upgrade to ESPHome 2025.12.7 or later (or 2026.1.0b3 or later)
- Enable API encryption with a unique key per device
- Follow the Security Best Practices
Severity
Low - Users following Security Best Practices with API encryption enabled are not affected without knowledge of the encryption key.
Impact
Denial-of-service. An attacker with network access to port 6053 can crash and reboot the device.
Credits
Thanks to @Mat931 for responsibly reporting this vulnerability.
NVD (es)
ESPHome es un sistema para controlar microcontroladores remotamente a través de sistemas de automatización del hogar. En las versiones 2025.9.0 a 2025.12.6, un desbordamiento de entero en el decodificador protobuf del componente API permite ataques de denegación de servicio cuando no se utiliza el cifrado de API. La comprobación de límites `ptr + field_length > end` en `components/api/proto.cpp` puede desbordarse cuando un cliente malicioso envía un valor `field_length` grande. Esto afecta a todas las plataformas de dispositivos ESPHome (ESP32, ESP8266, RP2040, LibreTiny). El desbordamiento omite la comprobación fuera de límites, lo que provoca que el dispositivo lea memoria no válida y falle. Cuando se utiliza el protocolo API de texto plano, este ataque puede realizarse sin autenticación. Cuando el cifrado de ruido está habilitado, se requiere conocimiento de la clave de cifrado. Los usuarios deben actualizar a ESPHome 2025.12.7 o posterior para recibir un parche, habilitar el cifrado de API con una clave única por dispositivo y seguir las Mejores Prácticas de Seguridad.
References
| https://github.com/esphome/esphome/security/advisories/GHSA-4h3h-63v6-88qx | mitigation, patch, vendor-advisory, web | |
| https://github.com/esphome/esphome/pull/13306 | issue-tracking, patch, web | |
| https://github.com/esphome/esphome/commit/69d7b6e9210390051318bd8e6410727689de08d6 | patch, web | |
| https://esphome.io/guides/security_best_practices | technical-description, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-23833 | advisory | |
| https://github.com/esphome/esphome | package | |
| https://pypi.org/project/esphome | package | |
| https://github.com/advisories/GHSA-4h3h-63v6-88qx | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23833 changed 2026-01-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4h3h-63v6-88qx changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-23833 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1326 changed 2026-07-07 | CC-BY-4.0 |