A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-38422

CVE-2026-38422: Tasmota Buffer Overflow RCE Vulnerability

CVE-2026-38422 is a buffer overflow vulnerability in Tasmota firmware v.15.3.0.3 and earlier that enables remote code execution. This article covers the technical details, affected versions, security impact, and mitigation.

Published: May 28, 2026

CVE-2026-38422 Overview

CVE-2026-38422 is a stack-based buffer overflow [CWE-121] in the Tasmota firmware maintained by arendst. The vulnerability affects Tasmota version 15.3.0.3 and earlier releases. The flaw resides in the fetch_jpg() function within tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino. A remote attacker can exploit this weakness over the network to execute arbitrary code on affected devices. Tasmota is an open-source firmware widely deployed on ESP8266 and ESP32-based smart home and Internet of Things (IoT) devices, expanding the potential attack surface across consumer and commercial deployments.

Critical Impact

Remote attackers can execute arbitrary code on Tasmota-powered IoT devices without authentication or user interaction.

Affected Products

  • arendst Tasmota firmware version 15.3.0.3
  • All Tasmota firmware versions prior to 15.3.0.3
  • ESP8266 and ESP32 devices running vulnerable Tasmota builds with the scripter driver enabled

Discovery Timeline

  • 2026-05-27 - CVE-2026-38422 published to the National Vulnerability Database
  • 2026-05-28 - Last updated in NVD database

Technical Details for CVE-2026-38422

Vulnerability Analysis

The vulnerability is a stack-based buffer overflow in the fetch_jpg() function of the Tasmota scripter driver. The scripter component (xdrv_10_scripter.ino) implements scripting capabilities that allow users to extend device behavior with custom logic. When the fetch_jpg() function processes JPEG data retrieved from a remote source, it fails to enforce sufficient bounds on the destination buffer. Attacker-controlled input can overrun the fixed-size stack buffer and overwrite adjacent memory, including return addresses and saved registers.

Exploitation results in arbitrary code execution on the embedded microcontroller. Because Tasmota firmware runs without traditional operating system isolation, successful exploitation grants full control of the device, including attached relays, sensors, and network interfaces. Compromised devices can serve as pivots into local networks or be conscripted into IoT botnets.

Root Cause

The root cause is missing input validation on data passed to a fixed-size stack buffer within fetch_jpg(). The function does not validate the length of remote JPEG content against the destination buffer size before copying. This classic [CWE-121] pattern allows linear overflow of the call stack.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker who can reach the device's HTTP interface or induce it to fetch a crafted JPEG resource can trigger the overflow. Technical references and an exploit proof-of-concept are published in the GitHub CVE-2026-38422 Exploit repository, and the vulnerable source is visible in the Tasmota scripter driver source.

No verified code examples are reproduced here. See the linked references for technical details.

Detection Methods for CVE-2026-38422

Indicators of Compromise

  • Unexpected outbound connections from Tasmota devices to unknown hosts or JPEG fetch endpoints
  • Repeated device crashes, watchdog resets, or unexplained reboots following inbound HTTP requests
  • Modifications to scripter rules or MQTT topics that were not made by authorized administrators
  • HTTP requests targeting scripter endpoints with oversized URL parameters or unusual JPEG URL payloads

Detection Strategies

  • Inventory all Tasmota devices and compare firmware versions against the patched release
  • Inspect network traffic for HTTP requests to Tasmota web interfaces containing suspicious image fetch directives
  • Correlate device reboot events with inbound network connections to identify exploitation attempts
  • Enable verbose logging on Tasmota devices and forward logs to a centralized collector for anomaly review

Monitoring Recommendations

  • Place Tasmota and other IoT devices on isolated VLANs and monitor cross-segment traffic
  • Alert on any external network reachability to device management interfaces on port 80 or 443
  • Track changes to device configuration, firmware checksums, and scripter rule sets over time

How to Mitigate CVE-2026-38422

Immediate Actions Required

  • Upgrade Tasmota firmware to a version released after 15.3.0.3 that contains the fix
  • Restrict network access to Tasmota device web interfaces using firewall rules or VLAN segmentation
  • Disable the scripter driver on devices where scripting functionality is not required
  • Audit existing devices for signs of compromise before applying updates

Patch Information

Monitor the Tasmota GitHub repository for the upstream fix to the fetch_jpg() function in xdrv_10_scripter.ino. Apply the patched firmware to all affected devices through Tasmota's over-the-air update mechanism or by reflashing from a trusted host.

Workarounds

  • Disable the scripter feature in the Tasmota build configuration if it is not in use
  • Block outbound HTTP fetches from Tasmota devices at the network perimeter
  • Require authentication on the device web interface and use strong, unique credentials per device
  • Place vulnerable devices behind a reverse proxy that filters oversized or malformed image fetch requests
bash
# Example: Isolate Tasmota devices on a dedicated VLAN and restrict inbound access
iptables -A FORWARD -i vlan_iot -p tcp --dport 80 -m state --state NEW -j DROP
iptables -A FORWARD -o vlan_iot -p tcp --dport 80 -m state --state ESTABLISHED,RELATED -j ACCEPT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTasmota

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-121
  • Technical References
  • GitHub Tasmota Repository

  • GitHub Tasmota Script File

  • GitHub CVE-2026-38422 Exploit
  • Related CVEs
  • CVE-2026-38426: Tasmota Buffer Overflow RCE Vulnerability

  • CVE-2026-38427: Tasmota Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English