CVE-2026-23833: ESPHome Denial-of-Service Vulnerability via Out-of-Bounds Check Bypass

esphome Updated 21 Jan 2026

Summary

21/01/2026
Yes i
Moderate
6.8

CVE-2026-23833: ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component. Affects esphome versions >= 2025.9.0, < 2025.12.7. Fixed in 2025.12.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

ESPHome is an open-source project that allows users to create custom firmware for various IoT devices, including ESP32, ESP8266, RP2040, and LibreTiny platforms. It provides a user-friendly interface for configuring and managing these devices, enabling seamless integration with home automation systems. However, a recent vulnerability has been identified in its API component, which could lead to denial-of-service attacks if not addressed promptly.

Vulnerability Detail

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 vulnerability affects all ESPHome device platforms and can cause the device to read invalid memory, leading to crashes. When using the plaintext API protocol, this attack can be executed without authentication, making it particularly concerning for users who do not implement security measures.

How To Fix

Latest published version: 2026.10.0 as of 22 Oct 2026

pip install --upgrade "esphome==2026.10.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2025.12.7

This is the first release that contains the fix.

pip install --upgrade "esphome==2025.12.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users are advised to enable API encryption with a unique key per device. This can be done by modifying the configuration file to include the following lines: 'api: encryption: key: YOUR_UNIQUE_KEY'. Replace 'YOUR_UNIQUE_KEY' with a strong, unique key for each device.

Conclusion

In summary, CVE-2026-23833 is a significant vulnerability in ESPHome that can lead to denial-of-service attacks if not addressed. Users are encouraged to upgrade to the patched version and implement API encryption to safeguard their devices. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for esphome →

Share this vulnerability

FAQ

CVE-2026-23833 is a vulnerability in ESPHome that allows denial-of-service attacks via an out-of-bounds check bypass in the API component.

If your ESPHome devices are running affected versions and API encryption is not enabled, they can be crashed by sending specially crafted requests.

ESPHome versions 2025.9.0 through 2025.12.6 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 6.8, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for esphome.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 2026.10.0 as of 22 Oct 2026

pip install --upgrade "esphome==2026.10.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2025.12.7

This is the first release that contains the fix.

pip install --upgrade "esphome==2025.12.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback