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-38427

CVE-2026-38427: Tasmota Buffer Overflow Vulnerability

CVE-2026-38427 is a heap buffer overflow flaw in Tasmota firmware affecting the fetch_jpg() function. Remote attackers can exploit integer wraparound to cause memory corruption. This article covers technical details, affected versions, and mitigations.

Published: May 28, 2026

CVE-2026-38427 Overview

CVE-2026-38427 is a heap buffer overflow vulnerability in the fetch_jpg() function within xdrv_10_scripter.ino in Tasmota through version 15.3.0.3. The flaw stems from an integer truncation issue where the HTTP Content-Length value of an incoming JPEG stream is stored in a uint16_t variable. Values exceeding 65535 wrap around, causing Tasmota to allocate a buffer smaller than the data subsequently read into it. A remote attacker can exploit this condition over the network without authentication to corrupt heap memory on the affected device.

Critical Impact

A remote, unauthenticated attacker can trigger a heap buffer overflow on Tasmota-powered IoT devices, leading to memory corruption, denial of service, or potential code execution.

Affected Products

  • Tasmota firmware versions through 15.3.0.3
  • The xdrv_10_scripter driver (fetch_jpg() function)
  • ESP-based IoT devices running vulnerable Tasmota builds with the scripter driver enabled

Discovery Timeline

  • 2026-05-27 - CVE-2026-38427 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-38427

Vulnerability Analysis

The vulnerability resides in the fetch_jpg() function inside xdrv_10_scripter.ino, a script driver shipped with Tasmota. The function retrieves a JPEG image from a remote HTTP source for use within Tasmota scripts. During this operation, the server-supplied Content-Length header is parsed and used to allocate a heap buffer sized to hold the incoming JPEG payload.

The root issue is a numeric truncation defect classified as a heap-based buffer overflow [CWE-122]. The size value is stored in a 16-bit unsigned integer, which can only represent values from 0 to 65535. Any Content-Length greater than 65535 wraps around to a much smaller value, while the actual HTTP body read into the buffer reflects the true, larger size. The driver then writes past the end of the allocated heap region.

Root Cause

The defect is an integer truncation in size handling. Storing Content-Length in a uint16_t does not match the range of legitimate or attacker-controlled HTTP payload sizes. The allocation and the read are decoupled in width, so allocator size and copy length diverge whenever the header exceeds 64 KiB.

Attack Vector

An attacker controls a server that the Tasmota device fetches a JPEG from, either by hosting a malicious endpoint referenced in a script or by intercepting and rewriting an outbound JPEG fetch. The server responds with a Content-Length greater than 65535 and a body that fills the smaller wrapped allocation and overflows adjacent heap structures. On ESP-class hardware, heap corruption typically results in device crash, watchdog reset, or, depending on heap layout, manipulation of subsequent allocations.

The vulnerability is described in prose only. Refer to the Tasmota scripter source on GitHub and the CVE-2026-38427 research repository for implementation details.

Detection Methods for CVE-2026-38427

Indicators of Compromise

  • Tasmota devices experiencing repeated unexpected reboots, watchdog resets, or heap allocation errors in serial logs after script-driven JPEG fetches.
  • Outbound HTTP requests from Tasmota devices to untrusted hosts returning JPEG responses with Content-Length headers larger than 65535 bytes.
  • Script rules referencing fetch_jpg with attacker-influenced URLs.

Detection Strategies

  • Inspect Tasmota script configurations for use of the fetch_jpg command and review the destination URLs for untrusted origins.
  • Monitor network traffic from IoT VLANs for HTTP responses to Tasmota clients containing oversized JPEG payloads or anomalous Content-Length values.
  • Correlate device crash telemetry with preceding outbound HTTP image fetches to identify exploitation attempts.

Monitoring Recommendations

  • Centralize Tasmota MQTT and syslog output and alert on WARNING or ERROR messages indicating heap corruption, allocation failure, or unexpected restarts.
  • Egress filter Tasmota devices so they can only reach a known allowlist of HTTP endpoints used by approved scripts.
  • Track firmware versions across the fleet to identify devices running Tasmota 15.3.0.3 or earlier with the scripter feature enabled.

How to Mitigate CVE-2026-38427

Immediate Actions Required

  • Disable the scripter driver or remove any fetch_jpg usage from Tasmota scripts until a patched firmware build is deployed.
  • Restrict Tasmota devices to a segmented IoT network with no inbound exposure and tightly controlled outbound HTTP access.
  • Inventory all Tasmota devices and identify those running 15.3.0.3 or earlier for prioritized remediation.

Patch Information

At the time of NVD publication on 2026-05-27, no vendor advisory or fixed release is referenced in the CVE record. Track the upstream Tasmota repository for a build later than 15.3.0.3 that widens the Content-Length storage type and validates the value against the allocated buffer size before reading the HTTP body.

Workarounds

  • Point fetch_jpg URLs only at trusted, internally controlled HTTP servers that cannot be redirected or tampered with.
  • Place a reverse proxy or firewall in front of Tasmota egress to strip or cap responses whose Content-Length exceeds a safe threshold such as 32 KiB.
  • Remove or comment out script lines invoking JPEG fetches where the feature is not required.
bash
# Configuration example: disable scripter rules invoking fetch_jpg
# From the Tasmota console, clear active script content:
Rule1 0
Script 0

# Or, on the device build, compile firmware without the scripter driver
# by editing user_config_override.h before flashing:
#   #undef USE_SCRIPT
#   #undef USE_SCRIPT_FATFS

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechTasmota

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.09%

  • 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-122
  • Technical References
  • GitHub Tasmota Script File

  • GitHub CVE-2026-38427 Repository
  • Related CVEs
  • CVE-2026-38422: Tasmota Buffer Overflow RCE Vulnerability

  • CVE-2026-38426: Tasmota Buffer Overflow RCE 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