Junglewise Threat Intelligence

CVE-2026-38427: Arendst Tasmota heap buffer overflow in fetch_jpg

CVE-2026-38427 · Severity: info · CVSS 9.8 · Published 2026-05-27

Technologies: Tasmota. Vendors: Tasmota.

Executive brief

Tasmota, a popular open-source firmware for smart home devices like smart plugs and light switches, contains a security flaw in how it handles image downloads. An attacker can trick a device into connecting to a malicious server that sends a specially crafted image file, causing the device to crash or potentially allowing the attacker to take full control of the hardware. This could lead to unauthorized access to the device's functions or the local network it is connected to.

Technical details

An integer wraparound vulnerability exists in the fetch_jpg() function within xdrv_10_scripter.ino of Tasmota firmware. When the device fetches MJPEG frames, the Content-Length header is processed using atoi() and stored in a uint16_t variable. If the header value exceeds 65535, the value wraps around, resulting in the allocation of an undersized heap buffer via special_malloc(). Subsequent read operations then overflow this buffer or leave residual data in the stream, leading to heap corruption. This can be triggered remotely if an attacker can induce the device to connect to a malicious HTTP server (e.g., via a script or MITM), potentially resulting in a Denial of Service (DoS) or Remote Code Execution (RCE) on ESP32-based hardware. The issue is addressed in version 15.3.0.4.

Affected products

  • Arendst Tasmota through 15.3.0.3

Timeline

  • 2026-03-29: disclosed: Vulnerability discovered and reported to MITRE
  • 2026-05-27: advisory: CVE published by NVD/MITRE
  • 2026-05-01: patched: Patch released in Tasmota v15.3.0.4+

References

Related threats