PyPI: esphome

CVE-2026-23833

Safety vulnerability ID: SFTY-20260121-50729

Safety legacy ID: pyup.io-84894

Affected versions of the esphome package are vulnerable to Denial of Service (DoS) due to an integer overflow in a protobuf decoder bounds check. The API component’s protobuf decoder in components/api/proto.cpp performs the bounds check ptr + field_length > end, which can overflow when a malicious client supplies a very large field_length, bypassing the out-of-bounds check and triggering invalid memory reads. An attacker with network access to port 6053 can exploit this by sending a crafted plaintext API message to crash and reboot the device (no authentication required when the plaintext API protocol is used, while Noise-encrypted API sessions require knowledge of the encryption key), resulting in a sustained denial of service.

Created at: Mar 4, 2026Updated at: Mar 4, 2026

Overview

ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component

Advisory

Affected versions of the esphome package are vulnerable to Denial of Service (DoS) due to an integer overflow in a protobuf decoder bounds check. The API component’s protobuf decoder in components/api/proto.cpp performs the bounds check ptr + field_length > end, which can overflow when a malicious client supplies a very large field_length, bypassing the out-of-bounds check and triggering invalid memory reads. An attacker with network access to port 6053 can exploit this by sending a crafted plaintext API message to crash and reboot the device (no authentication required when the plaintext API protocol is used, while Noise-encrypted API sessions require knowledge of the encryption key), resulting in a sustained denial of service.

Affected Package

Affecting esphome package, versions
>=2025.9.0,<2025.12.7

Also affects

---

How to Fix

Upgrade
esphome
to
2025.12.7
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more