Skip to main content

Tasmota CVE-2026-38427

HIGH
Heap-based Buffer Overflow (CWE-122)
2026-05-27 cve@mitre.org
7.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or MITM the JPEG source server
  2. Delivery
    Return Content-Length above 65535 with larger body
  3. Exploit
    uint16_t length wraps to small value
  4. Execution
    Undersized heap buffer allocated in fetch_jpg()
  5. Persist
    Full payload read overflows heap
  6. Impact
    Memory corruption / device crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the Tasmota build includes the scripter driver and that a script invokes fetch_jpg() to retrieve a JPEG stream from a URL the attacker can control or intercept (e.g., attacker-operated server or on-path/MITM position). The concrete trigger is an HTTP response whose Content-Length exceeds 65535 (causing the uint16_t to wrap) while the actual body delivered is larger than the wrapped allocation size. Limiting factors: the device must be configured/scripted to fetch images, the attacker must influence the JPEG source response (so this is not purely server-side unauthenticated against a listening port despite AV:N/PR:N/UI:N), and impact is rated partial (C:L/I:L/A:L) suggesting memory corruption/DoS with code execution unconfirmed. The CVSS vector implies no special conditions, but the description's fetch-client behavior contradicts a fully unsolicited remote trigger - verify the deployment's scripter configuration.

Impact

The CVSS 3.1 base score is 7.3 with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L, indicating network reach, low complexity, no privileges, no user interaction, and partial (low) impact to confidentiality, integrity, and availability rather than full system compromise. CISA SSVC signals reinforce moderate priority: Exploitation=poc, Automatable=yes, Technical Impact=partial. However, the raw PR:N/UI:N/AV:N vector understates a practical limiter - fetch_jpg() means the device acts as an HTTP client, so an attacker must control or impersonate the JPEG source server that the device is scripted to fetch, and the scripter feature must be enabled; this nuance is not captured by the CVSS vector and should be verified against deployment. No EPSS score was provided, so probabilistic exploitation likelihood cannot be assessed from this data. There is no KEV listing; combined with the partial technical impact, this reads as a real but mid-tier issue (likely memory corruption/crash, with code-execution potential unconfirmed) rather than a mass-exploited critical, despite a published POC.

Exploit ScenarioDerived

An attacker who controls or can man-in-the-middle the HTTP server that a Tasmota device's script fetches a JPEG from returns a response advertising a Content-Length above 65535 (e.g., 65540, which wraps to 4) while streaming a larger body. The device allocates a tiny heap buffer based on the wrapped value and then reads the full payload into it, overflowing the heap and corrupting adjacent memory. A public POC repository (sermikr0/CVE-2026-38427) exists, and the low attack complexity (AC:L) with no required privileges or user interaction makes the trigger straightforward once the JPEG source is attacker-influenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Heap buffer overflow in Tasmota IoT firmware (through version 15.3.0.3) lets a remote attacker corrupt heap memory by manipulating the Content-Length of a JPEG stream processed by the fetch_jpg() routine in the scripter driver. Because the length is stored in a 16-bit integer, values above 65535 wrap to a small number, so the firmware allocates an undersized buffer and then reads the full, larger payload into it. Publicly available exploit code exists (a dedicated GitHub repository), CISA's SSVC framework rates exploitation as proof-of-concept and automatable, but the issue is not in CISA KEV and no public active exploitation is identified.

RemediationAI

No vendor-released patch version is identified at time of analysis - the only references are the source file at commit c207cc2 and a third-party POC repository (https://github.com/sermikr0/CVE-2026-38427), so upgrade to a fixed Tasmota build above 15.3.0.3 once the maintainer publishes one and confirm the fix in xdrv_10_scripter.ino. As compensating controls until a fixed release is available: disable or omit the scripter/fetch_jpg functionality in the build if it is not required (removes the vulnerable code path at the cost of losing scripted image fetching); restrict scripts so they only fetch JPEGs from trusted, fixed URLs rather than attacker-influenceable endpoints; and enforce HTTPS with certificate validation plus network segmentation so an on-path attacker cannot inject a crafted Content-Length response (trade-off: added configuration and possible memory overhead on constrained devices). Monitor the arendst/Tasmota repository for the upstream fix and apply it promptly.

Affected ProductsAI

Tasmota firmware is affected in all releases through 15.3.0.3, specifically in the scripter driver file tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino as referenced at https://github.com/arendst/Tasmota/blob/c207cc2/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino. No CPE strings were supplied in the input, and no per-device or per-platform breakdown (ESP8266 vs ESP32 builds) is provided; only builds that include the scripter component are exposed. No separate vendor security advisory URL was included beyond the source repository link.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Tasmota is widely deployed open-source firmware for ESP8266/ESP32-based smart-home and IoT devices. The vulnerable code is fetch_jpg() in tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino, part of the optional Berry/scripter subsystem that can fetch images over HTTP. The root cause is CWE-122 (heap-based buffer overflow) driven by an integer-truncation defect: the HTTP Content-Length header is parsed into a uint16_t (maximum 65535), so any declared length above 65535 wraps modulo 65536 to a smaller value. The buffer is sized from that truncated value while the subsequent read consumes the actual (larger) body, writing past the end of the heap allocation. The referenced source blob (commit c207cc2) shows the affected file containing this allocation logic.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

DescriptionCVE.org

An issue in fetch_jpg() in xdrv_10_scripter.ino in Tasmota through 15.3.0.3 allows a remote attacker to cause heap buffer overflow. The Content-Length from a JPEG stream is stored in a uint16_t variable; values above 65535 wrap around, causing allocation of a smaller buffer than the data actually read.

Executive ViewAI

Why It Matters

Tasmota IoT firmware versions through 15.3.0.3 contain a remotely exploitable heap buffer overflow in JPEG stream processing that permits memory corruption. With publicly available exploit code and no vendor patch currently available, organizations running affected devices face immediate risk of compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict JPEG stream processing inputs to authenticated/trusted sources only; (2) Implement network segmentation to isolate Tasmota devices from untrusted networks; (3) Disable the scripter driver where operationally feasible; (4) Monitor and alert on suspicious Content-Length values in HTTP requests targeting affected devices.

Threat Intelligence Overview

EPSS Score
0.1%
Top 75% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy