{"id":"CVE-2026-23833","aliases":["CVE-2026-23833","GHSA-4h3h-63v6-88qx","PYSEC-2026-1326"],"related":[],"kind":"vulnerability","state":"published","title":"ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn integer overflow in the API component's protobuf decoder allows denial-of-service attacks when API encryption is not used.\n\n### Details\nThe 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.\n\nWhen using the plaintext API protocol, this attack can be performed without authentication. When noise encryption is enabled, knowledge of the encryption key is required.\n\n### Affected Versions\nESPHome 2025.9.0 through 2025.12.6\n\n### Mitigation\n- Upgrade to ESPHome 2025.12.7 or later (or 2026.1.0b3 or later)\n- [Enable API encryption](https://esphome.io/components/api.html#configuration-variables) with a unique key per device\n- Follow the [Security Best Practices](https://esphome.io/guides/security_best_practices/)\n\n### Severity\nLow - Users following [Security Best Practices](https://esphome.io/guides/security_best_practices/) with API encryption enabled are not affected without knowledge of the encryption key.\n\n### Impact\nDenial-of-service. An attacker with network access to port 6053 can crash and reboot the device.\n\n### Credits\nThanks to [@Mat931](https://github.com/Mat931) for responsibly reporting this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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 &gt; 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.","source":"nvd"}],"published":"2026-01-19T17:58:50.499Z","modified":"2026-07-07T17:56:35.058Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":">= 2025.9.0, < 2025.12.7","status":"affected"}],"vendor":"esphome","product":"esphome","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2025.9.0","status":"affected","fixed":"2025.12.7"}],"ecosystem":"PyPI","package":"esphome","purl":"pkg:pypi/esphome","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2025.9.0","fixed":"2025.12.7"}],"vendor":"esphome","product":"esphome","cpe":"cpe:2.3:a:esphome:esphome:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2025.9.0","status":"affected","fixed":"2025.12.7"}],"ecosystem":"PyPI","package":"esphome","purl":"pkg:pypi/esphome","source":"pysec"}],"references":[{"url":"https://github.com/esphome/esphome/security/advisories/GHSA-4h3h-63v6-88qx","tags":["mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/esphome/esphome/pull/13306","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/esphome/esphome/commit/69d7b6e9210390051318bd8e6410727689de08d6","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://esphome.io/guides/security_best_practices","tags":["technical-description","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23833","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/esphome/esphome","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/esphome","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4h3h-63v6-88qx","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-01-20T21:39:09.658Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23833","url":"https://www.cve.org/CVERecord?id=CVE-2026-23833","licence":"CVE Terms of Use","modified":"2026-01-20T21:39:18.848Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4h3h-63v6-88qx","url":"https://github.com/advisories/GHSA-4h3h-63v6-88qx","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:35.058Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23833","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23833","licence":"Public domain","modified":"2026-06-17T10:22:10.463Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1326","url":"https://osv.dev/vulnerability/PYSEC-2026-1326","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:44.629Z"}],"updatedAt":"2026-11-25T22:59:12.944Z","epss":{"score":0.00301,"percentile":0.24594,"date":"2026-12-01T12:00:22.000Z"}}