The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-43967

CVE-2025-43967: Struktur Libheif Use-After-Free Vulnerability

CVE-2025-43967 is a use-after-free vulnerability in Struktur Libheif affecting versions before 1.19.6. A NULL pointer dereference occurs when grid images reference nonexistent items. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-43967 Overview

CVE-2025-43967 is a NULL pointer dereference vulnerability discovered in libheif, an open-source library for reading and writing HEIF and AVIF image files. The vulnerability exists in the ImageItem_Grid::get_decoder function within image-items/grid.cc, where a specially crafted grid image can reference a nonexistent image item, leading to a denial of service condition.

Critical Impact

This vulnerability can be exploited remotely without authentication to cause application crashes, resulting in denial of service for applications that process untrusted HEIF/AVIF images using vulnerable versions of libheif.

Affected Products

  • struktur libheif versions prior to 1.19.6
  • Applications and services using vulnerable libheif versions for image processing
  • Image viewers, converters, and web services that handle HEIF/AVIF files

Discovery Timeline

  • 2025-04-21 - CVE-2025-43967 published to NVD
  • 2025-05-08 - Last updated in NVD database

Technical Details for CVE-2025-43967

Vulnerability Analysis

This vulnerability represents a NULL pointer dereference condition (CWE-476) that occurs during grid image processing in libheif. When the library attempts to decode a grid image, it calls the get_decoder function to retrieve the decoder for referenced image items. However, if a malicious HEIF file contains a grid image that references an image item ID that does not exist in the file's item collection, the code fails to validate the reference before attempting to use it.

The attack can be initiated remotely through network-accessible services that process user-supplied images. No privileges or user interaction are required, making this vulnerability particularly dangerous for web services and automated image processing pipelines. While the vulnerability does not enable data exfiltration or arbitrary code execution, it can cause complete service disruption through application crashes.

Root Cause

The root cause lies in insufficient input validation when processing grid image references. The ImageItem_Grid::get_decoder function did not verify that referenced image item IDs actually exist in the m_all_images collection before attempting to access them. When an invalid reference is encountered, the code attempts to dereference a NULL or invalid pointer, resulting in a crash.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious HEIF or AVIF image file containing a grid image structure with references to nonexistent image item IDs. When a vulnerable application attempts to decode this file, the library crashes due to the NULL pointer dereference. This attack vector is particularly effective against:

  • Web applications that allow image uploads
  • Image conversion services
  • Content management systems processing user media
  • Messaging applications that preview images
text
// Security patch in libheif/context.cc - detect when image references non-existing item (#1455)
     }
   }
   else {
+    if (m_all_images.find(id) == m_all_images.end()) {
+      std::stringstream sstr;
+      sstr << "Image item " << id << " referenced, but it does not exist\n";
+
+      return Error(heif_error_Invalid_input,
+        heif_suberror_Nonexisting_item_referenced,
+        sstr.str());
+    }
+    else if (dynamic_cast<ImageItem_Error*>(m_all_images.find(id)->second.get())) {
+      // Should er return an error here or leave it to the follow-up code to detect that?
+    }
+
     out = id;
     return Error::Ok;
   }

Source: GitHub Commit 6e35af7

Detection Methods for CVE-2025-43967

Indicators of Compromise

  • Unexpected application crashes when processing HEIF or AVIF image files
  • Segmentation fault errors in logs referencing libheif or grid image processing
  • Service restarts coinciding with image upload or processing operations
  • Core dumps or crash reports indicating NULL pointer access in grid.cc or related libheif components

Detection Strategies

  • Monitor application logs for segmentation faults and NULL pointer dereference errors associated with image processing operations
  • Implement file integrity monitoring to detect unusual patterns in uploaded HEIF/AVIF files
  • Deploy runtime application self-protection (RASP) to detect and block exploitation attempts
  • Use SentinelOne Singularity to detect anomalous process crashes and potential exploitation patterns

Monitoring Recommendations

  • Configure alerting for repeated crashes in services that process image files
  • Track libheif version deployments across your infrastructure using software composition analysis
  • Implement logging at the application layer to capture metadata about processed images before crashes
  • Set up automated vulnerability scanning to identify systems running vulnerable libheif versions

How to Mitigate CVE-2025-43967

Immediate Actions Required

  • Upgrade libheif to version 1.19.6 or later immediately on all affected systems
  • Audit applications and services for libheif dependencies, including transitive dependencies
  • Consider temporarily disabling HEIF/AVIF processing capabilities for untrusted inputs until patching is complete
  • Implement input validation at the application layer to reject malformed image files before they reach libheif

Patch Information

The vulnerability has been addressed in libheif version 1.19.6. The fix adds proper validation to check whether referenced image item IDs exist in the m_all_images collection before attempting to access them. If a nonexistent reference is detected, the library now returns a descriptive error (heif_error_Invalid_input with heif_suberror_Nonexisting_item_referenced) instead of crashing.

For detailed information about the security patch, refer to the GitHub commit 6e35af7 and the version comparison between v1.19.5 and v1.19.6. Additional context is available in GitHub Issue #1455.

Workarounds

  • Implement strict file type validation at the application boundary to limit accepted image formats
  • Deploy web application firewalls (WAF) with rules to inspect and reject potentially malicious HEIF files
  • Isolate image processing operations in sandboxed environments to contain crash impacts
  • Use process supervision to automatically restart crashed services while maintaining availability
bash
# Check installed libheif version
pkg-config --modversion libheif

# Update libheif on Debian/Ubuntu systems
sudo apt update && sudo apt install libheif1

# Verify updated version
pkg-config --modversion libheif
# Expected output: 1.19.6 or higher

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechStruktur Libheif

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub Issue #1455
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Version Compare
  • Related CVEs
  • CVE-2024-41311: Struktur Libheif Buffer Overflow Flaw

  • CVE-2023-49462: Struktur Libheif Buffer Overflow Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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