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

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

CVE-2026-32882 is a heap buffer over-read denial of service vulnerability in libheif's HeifPixelImage overlay function. Attackers can crash applications or leak heap memory. This article covers technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-32882 Overview

CVE-2026-32882 is a heap buffer over-read vulnerability in libheif, a widely deployed HEIF and AVIF file format decoder and encoder. The flaw resides in HeifPixelImage::overlay() within libheif/pixelimage.cc and affects versions 1.21.2 and earlier. The issue [CWE-125] occurs when compositing an overlay image (iovl) whose child image uses a different bit depth for the alpha channel than for the color channels. The function indexes into the alpha plane using in_stride instead of alpha_stride, reading past the end of the alpha buffer. A crafted HEIF file can crash the decoder or disclose adjacent heap memory through bytes embedded in decoded output pixels.

Critical Impact

Attackers can crash applications processing untrusted HEIF files and potentially leak adjacent heap memory contents into rendered pixel data.

Affected Products

  • libheif versions 1.21.2 and prior
  • Applications and libraries embedding vulnerable libheif builds for HEIF/AVIF decoding
  • Downstream image processing pipelines and viewers that decode untrusted HEIF content

Discovery Timeline

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

Technical Details for CVE-2026-32882

Vulnerability Analysis

The defect lives in HeifPixelImage::overlay(), the routine responsible for compositing overlay images defined by the HEIF iovl derived image item. libheif stores color and alpha planes independently, and each plane carries its own stride value returned during buffer setup. The vulnerable code retrieves alpha_stride for the alpha plane but then uses in_stride, the color plane stride, when computing offsets into the alpha buffer.

When the alpha channel uses a different bit depth than the color channels, the two strides diverge. For a 100×50 image with 10-bit color and 8-bit alpha, the mismatched indexing reads up to 3,123 bytes past the end of the alpha buffer. The over-read bytes are then written into the composited output image, exposing whatever heap data resides adjacent to the alpha allocation.

Root Cause

The root cause is incorrect stride selection during pixel indexing. libheif treats color and alpha planes as having matched layouts when they do not. The function should index the alpha plane with alpha_stride, but instead reuses in_stride from the color plane. This produces out-of-bounds reads whenever bit depths or layouts differ between channels.

Attack Vector

Exploitation requires the victim to open or process a crafted HEIF file. The attack vector is network-reachable because HEIF files are commonly transferred over the web, email, and messaging platforms. User interaction is required to trigger decoding. Successful exploitation produces a denial of service through process crash or leaks heap memory bytes embedded in the decoded pixel output, which an attacker can recover when the rendered image is returned, displayed, or re-encoded.

No public proof-of-concept code has been released. Technical details are described in the GitHub Security Advisory GHSA-hg7q-rjr2-8x46.

Detection Methods for CVE-2026-32882

Indicators of Compromise

  • Unexpected crashes or segmentation faults in processes linking libheif when handling HEIF or AVIF content
  • HEIF files containing iovl derived image items with mismatched color and alpha bit depths
  • Rendered output images that contain noise patterns or anomalous pixel regions not present in legitimate source content

Detection Strategies

  • Inventory all applications and container images that bundle libheif and flag any build at version 1.21.2 or earlier
  • Apply static and software composition analysis to identify vulnerable libheif builds in third-party dependencies
  • Inspect inbound HEIF files for iovl items where alpha and color plane bit depths differ, as this is required to trigger the over-read

Monitoring Recommendations

  • Monitor endpoint and server processes for repeated crashes in image decoding pipelines that handle user-supplied HEIF files
  • Alert on anomalous memory access faults raised by AddressSanitizer or production crash reporters in libheif call stacks
  • Track HEIF and AVIF file processing telemetry from upload, messaging, and conversion services for spikes in malformed-image errors

How to Mitigate CVE-2026-32882

Immediate Actions Required

  • Upgrade libheif to version 1.22.0 or later across all systems, container images, and packaged applications
  • Rebuild and redeploy downstream software that statically links libheif after upgrading the library
  • Restrict acceptance of HEIF and AVIF files from untrusted sources until patched builds are in place

Patch Information

The fix is included in libheif 1.22.0. The corrected code uses alpha_stride when indexing the alpha plane in HeifPixelImage::overlay(). Release artifacts and changelog details are available in the libheif 1.22.0 release notes.

Workarounds

  • Disable HEIF and AVIF decoding in applications that cannot be patched immediately
  • Process untrusted HEIF files inside sandboxed or isolated workers so a crash or memory disclosure cannot reach the parent process
  • Strip or reject files containing overlay (iovl) derived image items at the perimeter using image-aware filtering
bash
# Verify installed libheif version on Linux
heif-info --version

# Debian/Ubuntu upgrade example
sudo apt update && sudo apt install --only-upgrade libheif1

# Confirm fixed version is 1.22.0 or later
dpkg -l | grep libheif

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLibheif

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Release v1.22.0

  • GitHub Security Advisory GHSA-hg7q-rjr2-8x46
  • Related CVEs
  • CVE-2026-32738: Struktur Libheif DOS Vulnerability

  • CVE-2026-32739: Struktur Libheif DoS Vulnerability

  • CVE-2026-32741: libheif Buffer Overflow Vulnerability

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