Tasmota CVE-2026-38422
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Tasmota device with Scripter enabled
-
DeliveryReach HTTP interface or control JPEG source
-
ExploitTrigger fetch_jpg() with oversized payload
-
InstallOverflow stack buffer in xdrv_10_scripter.ino
-
C2Hijack saved return address
-
ExecuteExecute shellcode on ESP firmware
-
ImpactPivot to MQTT/LAN and control IoT device
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack 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 the target device to be running Tasmota firmware built with the Scripter driver enabled (USE_SCRIPT compile-time flag) and to execute a user script that invokes the fetch_jpg() function against attacker-influenced HTTP content; vanilla Tasmota images without scripting compiled in are not affected. The CVSS PR:N/UI:N values indicate no authentication or user interaction is required at the network layer, but practical exploitation depends on either the attacker being able to reach the device's HTTP endpoint to manipulate script behavior or being able to control the upstream HTTP server that fetch_jpg() retrieves, so deployment context (LAN isolation, internet exposure of the Tasmota web UI, and which JPEG sources scripts reference) materially limits real-world reachability. Affected versions are strictly 15.3.0.3 and earlier of arendst/Tasmota. |
| Impact | Signals are mixed and should be weighed carefully. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates network-reachable, unauthenticated, low-complexity exploitation with partial impact across CIA, justifying the 7.3 base score; CWE-121 plus the 'RCE' tag points to a credible code-execution outcome on constrained IoT devices. Against that, EPSS sits at 0.05% (15th percentile), the CVE is not in CISA KEV, and the only third-party reference is a CVE-named GitHub repository whose exploit-code status is not verifiable from the provided data. The CVSS Network vector also warrants verification: the fetch_jpg() function is an HTTP client used inside scripts, so exploitation likely requires the Scripter feature enabled and the device to fetch attacker-controlled JPEG content - a condition closer to user-script-driven outbound interaction than a direct inbound attack. Realistic prioritization is moderate for exposed/managed Tasmota fleets and lower for isolated home LANs, but firmware-level RCE on IoT devices warrants prompt patching where the affected driver is in use. |
| Exploit ScenarioDerived | An attacker who can influence the URL or response that a Tasmota device's script passes to fetch_jpg() - for example by hosting a malicious endpoint that an exposed device is induced to fetch, or by tampering with an upstream HTTP source on a shared LAN - returns an oversized JPEG payload that overflows the stack buffer in xdrv_10_scripter.ino. The corrupted return address redirects execution to attacker-controlled shellcode, yielding code execution in the firmware context and full control of the IoT device (MQTT credentials, GPIO control, pivot onto the local network). A CVE-named public repository exists at https://github.com/sermikr0/CVE-2026-38422 indicating researcher interest, but weaponized exploit content was not confirmed from the provided references. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Remote code execution in Tasmota firmware version 15.3.0.3 and earlier allows remote unauthenticated attackers to trigger a stack-based buffer overflow in the fetch_jpg() function of the xdrv_10_scripter.ino scripting driver. The flaw is exposed over the network with low complexity and no privileges required (CVSS 7.3 AV:N/AC:L/PR:N/UI:N), and a public proof-of-concept repository has been registered, though no public exploit code was identified in the references at time of analysis. EPSS probability is very low (0.05%, 15th percentile) and the issue is not listed in CISA KEV.
RemediationAI
No vendor-released patched version is cited in the provided references, so treat this as: released patched version not independently confirmed - track the upstream repository at https://github.com/arendst/Tasmota for a release after 15.3.0.3 and rebuild/flash affected devices once available. Until a fixed release is published, the most effective compensating control is to build or flash a Tasmota image that omits the Scripter driver (remove USE_SCRIPT from user_config_override.h), which fully eliminates the vulnerable fetch_jpg() code path at the cost of losing in-device scripting; if scripting must remain enabled, avoid scripts that invoke fetch_jpg() against untrusted URLs and restrict outbound HTTP from the device by network policy. Network-layer mitigations - placing Tasmota devices on an isolated VLAN, blocking arbitrary outbound HTTP from IoT segments, and restricting management access to trusted hosts - reduce exposure but do not remove the underlying stack overflow, and may break legitimate cloud/MQTT integrations.
Affected ProductsAI
The affected product is Tasmota firmware (arendst/Tasmota) version 15.3.0.3 and all earlier releases, with the vulnerable code in tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino on the development branch (https://github.com/arendst/Tasmota/blob/development/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino). No CPE strings were provided in the input data, and no separate vendor advisory was supplied beyond the upstream GitHub repository at https://github.com/arendst/Tasmota; downstream device builds that include the Scripter driver (a compile-time option commonly enabled in tasmota32-script and similar variants) inherit the flaw.
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 an open-source firmware widely deployed on ESP8266/ESP32 microcontrollers for smart-home and IoT devices, providing MQTT, HTTP, and a built-in rule/scripting engine. The vulnerable code lives in the optional Scripter driver (xdrv_10_scripter.ino), specifically the fetch_jpg() helper that downloads JPEG content over HTTP for use inside user scripts. CWE-121 (Stack-Based Buffer Overflow) identifies the root cause: a fixed-size stack buffer is written without proper length validation against attacker-influenced input, allowing the stack frame - including saved return addresses on the ESP architecture - to be corrupted. Because Tasmota firmware images are statically linked with limited mitigations on ESP targets (no ASLR, no canaries in stock builds), stack corruption is a realistic path to arbitrary code execution on the device.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Buffer Overflow vulnerability in arendst Tasmota v.15.3.0.3 and before allows a remote attacker to execute arbitrary code via the tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino, fetch_jpg() function.
Executive ViewAI
Tasmota firmware versions 15.3.0.3 and earlier contain a remote code execution vulnerability enabling unauthenticated attackers to compromise affected devices. No vendor patch is currently available, leaving organizations with exposed IoT devices in an indefinite vulnerability window. Immediate inventory and network isolation of affected systems is required to reduce organizational risk.
No vendor-released patch identified at time of analysis. Interim mitigations: isolate affected devices behind network segmentation or restrictive firewall policies; disable unnecessary network services; implement network intrusion detection targeting the fetch_jpg() endpoint; maintain strict monitoring of vendor security advisories for patch availability; consider temporary device replacement if devices handle critical functions and cannot be adequately isolated.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
NVD
CVE.org
EPSS
GitHub
Exploit-DB