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

CVE-2026-32740: Struktur Libheif Buffer Overflow Vulnerability

CVE-2026-32740 is a heap buffer overflow flaw in Struktur Libheif that allows attackers to write 64 bytes of controlled data beyond allocated memory. This article covers technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-32740 Overview

CVE-2026-32740 is a heap buffer overflow write vulnerability in libheif, a widely deployed HEIF and AVIF file format decoder and encoder maintained by struktur. Versions 1.21.2 and earlier mishandle grid tile compositing when decoding a HEIF or AVIF file containing a 1×4 grid of odd-height tiles. An attacker can write 64 bytes of fully attacker-controlled chroma pixel data past the end of a chroma plane heap allocation. The overflow triggers during normal image decoding under the default build configuration, requiring only that a victim open or process a crafted image.

Critical Impact

Remote attackers can corrupt heap memory with controlled bytes by delivering a malicious HEIF or AVIF file, enabling potential code execution in any application that decodes untrusted images with libheif.

Affected Products

  • struktur libheif versions 1.21.2 and prior
  • Applications and operating systems bundling vulnerable libheif builds for HEIF or AVIF decoding
  • Image processing pipelines, browsers, and thumbnailers that link against libheif

Discovery Timeline

  • 2026-05-19 - CVE-2026-32740 published to NVD
  • 2026-05-20 - Last updated in NVD database

Technical Details for CVE-2026-32740

Vulnerability Analysis

The flaw is an out-of-bounds heap write classified as [CWE-787]. It resides in the grid tile compositing path of libheif, which assembles multiple tiles into a single decoded image. When a HEIF or AVIF file declares a 1×4 grid composed of tiles with odd-numbered heights, the compositor miscalculates the destination size of the chroma (Cb/Cr) planes relative to the source tile data. As a result, 64 bytes beyond the allocated chroma plane buffer receive attacker-supplied chroma pixel values during the copy.

Because the overwritten bytes originate from the attacking tile, the adversary controls every byte of the overflow. This control is significant on heap allocators where adjacent metadata or function pointers can be groomed into predictable positions. Exploitation requires no authentication, occurs over a network attack vector, and only depends on a user opening or rendering a crafted file.

Root Cause

The root cause is incorrect dimension handling for chroma subsampling when grid tiles have odd heights. Chroma planes in subsampled formats such as 4:2:0 are half the height of luma planes, and rounding errors on odd tile heights cause the compositor to write more chroma rows than were allocated. The 1×4 grid layout amplifies the rounding mismatch into a deterministic 64-byte overflow.

Attack Vector

An attacker crafts a HEIF or AVIF file with a 1×4 grid of odd-height tiles and delivers it through email attachments, web pages, messaging platforms, or cloud file shares. When the victim's application decodes the image using vulnerable libheif, the chroma plane overflow occurs without any further interaction. Exploitation requires user interaction limited to opening or previewing the file. The vulnerability does not require elevated privileges on the target system.

No public exploit or proof-of-concept code is currently available. Technical details are described in the GitHub Security Advisory GHSA-frfr-f3vg-2g6j.

Detection Methods for CVE-2026-32740

Indicators of Compromise

  • HEIF or AVIF files declaring a 1×4 grid configuration with tiles of odd pixel height
  • Crashes, aborts, or AddressSanitizer reports in processes linking libheif versions 1.21.2 or earlier
  • Unexpected child processes spawned by image viewers, thumbnailers, or browsers after opening .heic, .heif, or .avif files

Detection Strategies

  • Inventory all software that bundles or dynamically links libheif and compare versions against the patched 1.22.0 release
  • Inspect HEIF and AVIF files at email and web gateways for grid box configurations declaring a 1×4 layout with odd tile heights
  • Hunt for process crashes in image-rendering services that correlate with HEIF or AVIF file access events

Monitoring Recommendations

  • Enable crash telemetry and core dump collection on workstations and servers that decode user-supplied images
  • Monitor file ingestion pipelines for .heic, .heif, and .avif files originating from untrusted sources
  • Alert on anomalous memory access violations in long-running media processing daemons

How to Mitigate CVE-2026-32740

Immediate Actions Required

  • Upgrade libheif to version 1.22.0 or later on all systems and rebuild downstream applications that statically link the library
  • Apply vendor updates from operating system distributions that ship libheif as a package
  • Restrict ingestion of HEIF and AVIF files from untrusted sources until patching is complete

Patch Information

The maintainers fixed the issue in libheif1.22.0. See the GitHub libheif Release v1.22.0 for upgrade artifacts and the GitHub Security Advisory GHSA-frfr-f3vg-2g6j for authoritative remediation guidance.

Workarounds

  • Disable HEIF and AVIF decoding in applications that allow format selection until the patched library is deployed
  • Sandbox image decoding processes with seccomp, AppArmor, or equivalent controls to contain memory corruption
  • Strip or reject HEIF and AVIF attachments at email and web proxies for high-risk user populations
bash
# Verify the installed libheif version on Linux systems
dpkg -l | grep libheif
rpm -qa | grep libheif
pkg-config --modversion libheif

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibheif

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • GitHub libheif Release v1.22.0
  • Vendor Resources
  • GitHub Security Advisory GHSA-frfr-f3vg-2g6j
  • Related CVEs
  • CVE-2026-32741: libheif Buffer Overflow Vulnerability

  • CVE-2025-68431: Struktur Libheif Buffer Overflow Vulnerability

  • CVE-2026-32882: libheif Heap Buffer Over-Read DoS Flaw

  • CVE-2026-32738: Struktur Libheif DOS 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