CVE-2026-23833: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-23833 is an integer overflow vulnerability in the API component's protobuf decoder of ESPHome, a system for remotely controlling microcontrollers via home automation platforms. It affects ESPHome versions 2025.9.0 through 2025.12.6 across all supported device platforms (ESP32, ESP8266, RP2040, LibreTiny). The vulnerability was responsibly disclosed by researcher @Mat931 and published on January 18–19, 2026, with a patch released in version 2025.12.7. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 1.7 (Low), reflecting that unauthenticated exploitation is possible only when API encryption is disabled (Github Advisory, ESPHome Advisory).

Technical details

The root cause is an integer overflow (CWE-190) in the bounds check ptr + field_length > end within components/api/proto.cpp. On 32-bit microcontroller platforms, when a malicious client sends a crafted protobuf message with a sufficiently large field_length value, the addition of ptr and field_length wraps around, causing the comparison to evaluate as false and bypassing the out-of-bounds guard. This allows the device to read invalid memory beyond the buffer boundary, resulting in a crash and reboot. The fix, merged in PR #13306, replaces the addition-based check with a subtraction-based equivalent (field_length > static_cast<size_t>(end - ptr)), which is immune to overflow on these platforms. When the plaintext API protocol is in use (port 6053), no authentication is required to trigger the crash; with noise encryption enabled, a valid encryption key is needed (ESPHome Advisory, Patch Commit, Pull Request).

Impact

Successful exploitation results in a denial-of-service condition: the affected ESPHome device reads invalid memory and crashes, triggering an unintended reboot. There is no impact on confidentiality or integrity — the vulnerability is limited to availability of the targeted IoT device. In home automation environments, this could disrupt smart home functionality, disable sensors or actuators, and cause repeated device unavailability if the attacker continuously sends malicious packets (Github Advisory, ESPHome Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.046%, indicating a low probability of exploitation in the near term. Exploitation without authentication is only possible when the plaintext API protocol is used; devices with noise encryption enabled require the attacker to possess the encryption key, significantly raising the bar for exploitation (Github Advisory).

Exploitation steps

  1. Reconnaissance: Scan the local network or internet for ESPHome devices listening on TCP port 6053 using tools such as Nmap (nmap -p 6053 <target_range>). Identify devices running ESPHome versions 2025.9.0 through 2025.12.6 without API encryption enabled.
  2. Confirm plaintext API: Attempt a TCP connection to port 6053 on the target device. ESPHome devices using the plaintext API will respond without requiring a handshake or encryption negotiation.
  3. Craft malicious protobuf message: Construct a protobuf-encoded API message with a field_length value large enough to cause integer overflow when added to the current buffer pointer (e.g., a value near 0xFFFFFFFF on a 32-bit platform).
  4. Send crafted packet: Transmit the malformed protobuf message to the target device on port 6053. The bounds check ptr + field_length > end overflows, evaluates as false, and the device proceeds to read out-of-bounds memory.
  5. Trigger crash: The invalid memory read causes the device firmware to crash and reboot, resulting in a denial-of-service. Repeating this process prevents the device from recovering (ESPHome Advisory, Pull Request).

Indicators of compromise

  • Network: Unexpected or repeated TCP connection attempts to port 6053 on ESPHome devices from unknown or unauthorized IP addresses; malformed protobuf messages with anomalously large field length values in network captures.
  • Device Behavior: Repeated unscheduled reboots or crashes of ESPHome devices (ESP32, ESP8266, RP2040, LibreTiny) without apparent hardware cause; devices becoming intermittently unavailable to the home automation controller.
  • Logs: ESPHome device logs showing Out-of-bounds log entries from components/api/proto.cpp (e.g., Out-of-bounds Length Delimited at offset) immediately before a crash; Home Assistant or other controllers logging repeated reconnection events to ESPHome devices.

Mitigation and workarounds

The primary remediation is to upgrade ESPHome to version 2025.12.7 or later (or 2026.1.0b3 or later for beta users), which replaces the vulnerable addition-based bounds check with a safe subtraction-based equivalent (ESPHome Advisory, Patch Commit). As an interim workaround, enabling API encryption with a unique key per device prevents unauthenticated exploitation, as the attacker would need knowledge of the encryption key. Additional hardening measures include restricting network access to port 6053 to trusted hosts only via firewall rules, disabling the API component on devices where it is not required, and following the ESPHome Security Best Practices (Github Advisory).

Community reactions

The vulnerability was responsibly reported by community researcher @Mat931 and acknowledged by the ESPHome maintainers, who issued a patch promptly in version 2025.12.7. The advisory was rated "Low" severity by the ESPHome project, noting that users following security best practices with API encryption enabled are not affected without knowledge of the encryption key. No significant broader media coverage or notable social media discussion beyond standard CVE tracking sites has been observed (ESPHome Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-v2f8-6655-7grjCRITICAL10
  • Python logoPython
  • vibe-trading-ai
NoYesOct 02, 2026
CVE-2026-105782HIGH7.5
  • Python logoPython
  • scrapy
NoYesOct 06, 2026
GHSA-v853-p72q-4cfwHIGH7.5
  • Python logoPython
  • quart
NoYesOct 05, 2026
CVE-2026-105751MEDIUM6.9
  • Python logoPython
  • docling
NoYesOct 05, 2026
CVE-2026-105750MEDIUM5.9
  • Python logoPython
  • docling
NoYesOct 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management