Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-3146

CVE-2026-3146: Libvips Use-After-Free Vulnerability

CVE-2026-3146 is a use-after-free flaw in Libvips up to version 8.18.0 affecting the vips_foreign_load_matrix_header function. This post covers technical details, affected versions, impact, and mitigation steps.

Published: February 27, 2026

CVE-2026-3146 Overview

A null pointer dereference vulnerability has been discovered in libvips, a widely-used image processing library. The vulnerability exists in the vips_foreign_load_matrix_header function within the file libvips/foreign/matrixload.c. When processing specially crafted matrix input files, the function fails to properly validate input data, leading to a null pointer dereference condition that can cause application crashes.

Critical Impact

Local attackers can exploit this vulnerability to cause denial of service conditions in applications that utilize libvips for image processing operations, particularly when loading matrix format files.

Affected Products

  • libvips versions up to and including 8.18.0

Discovery Timeline

  • 2026-02-25 - CVE-2026-3146 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-3146

Vulnerability Analysis

This vulnerability is classified as a null pointer dereference (CWE-404) that occurs during the matrix file loading process in libvips. The vips_foreign_load_matrix_header function processes matrix file headers without adequately validating input boundaries. When the function encounters empty or malformed input data, it fails to handle the null condition gracefully, resulting in an attempt to dereference a null pointer.

The attack requires local access to the system where libvips is installed. An attacker would need to provide a malicious matrix file to an application that uses libvips for processing. Upon attempting to load the crafted file, the application would crash due to the null pointer dereference, resulting in a denial of service condition.

Root Cause

The root cause of this vulnerability lies in insufficient input validation within the matrix loading functionality. The vips_foreign_load_matrix_header function does not properly guard against empty and very large inputs when parsing matrix file headers. When the token parsing routine encounters unexpected input formats, it can return null values that are subsequently dereferenced without proper null checks.

Attack Vector

This is a local attack vector vulnerability. An attacker must have the ability to provide a specially crafted matrix file to an application that processes images using libvips. The attack scenario typically involves:

  1. Creating a malicious matrix file with empty or oversized header values
  2. Providing this file to a target application that uses libvips
  3. The application attempts to load the matrix file using vips_foreign_load_matrix_header
  4. The function encounters the malformed data and dereferences a null pointer
  5. The application crashes, resulting in denial of service

The following patch was applied to address the vulnerability:

text
 - fix loading/saving of non-8-bit JXL images [DarthSim]
 - invertlut: check height before interpolating values [dloebl] [lovell]
 - extract: check bounds using unsigned arithmetic [Niebelungen-D] [lovell]
+- matrixload: guard against empty and very large inputs [Niebelungen-D] [lovell]

 17/12/25 8.18.0

Source: GitHub Commit Details

The fix also includes an error message correction in the matrix loading code:

c
	for (i = 0, p = line; (q = vips_break_token(p, " \t")) && i < 4; i++, p = q)
		if (vips_strtod(p, &header[i])) {
-			vips_error("matload", _("bad number \"%s\""), p);
+			vips_error("matrixload", _("bad number \"%s\""), p);
			return -1;
		}

Source: GitHub Commit Details

Detection Methods for CVE-2026-3146

Indicators of Compromise

  • Application crashes when processing matrix format files with segmentation fault signals
  • Core dumps from applications using libvips with stack traces pointing to vips_foreign_load_matrix_header
  • Unusual or repeated crashes in image processing workflows that handle matrix files
  • Error logs showing null pointer dereference exceptions in libvips library calls

Detection Strategies

  • Monitor application crash logs for segmentation faults originating from libvips library functions
  • Implement file validation to detect malformed or suspicious matrix files before processing
  • Use static analysis tools to identify applications using vulnerable versions of libvips
  • Deploy software composition analysis to inventory libvips versions across your environment

Monitoring Recommendations

  • Enable core dump collection for applications that utilize libvips for forensic analysis
  • Configure application health monitoring to alert on unexpected process terminations
  • Implement input file logging to track matrix files processed by vulnerable applications
  • Set up version monitoring for libvips installations to ensure timely patching

How to Mitigate CVE-2026-3146

Immediate Actions Required

  • Inventory all applications and systems using libvips and identify versions prior to the patch
  • Apply the security patch identified by commit hash d4ce337c76bff1b278d7085c3c4f4725e3aa6ece
  • Restrict access to matrix file upload functionality until patching is complete
  • Review application logs for evidence of exploitation attempts or crashes

Patch Information

The vulnerability has been addressed by the libvips development team. The fix adds proper guards against empty and very large inputs in the matrix loading functionality. The patch is available at GitHub Commit Details. Additional details about the vulnerability discovery can be found in GitHub Issue #4875, and the fix implementation is tracked in GitHub Pull Request #4888.

Workarounds

  • Disable matrix file loading functionality in applications where it is not required
  • Implement input validation to reject matrix files before they reach libvips processing
  • Use application sandboxing to contain potential crashes and limit impact
  • Deploy file type restrictions to prevent untrusted matrix files from being processed
bash
# Check installed libvips version
vips --version

# If using package managers, update to latest patched version
# Debian/Ubuntu
apt-get update && apt-get upgrade libvips

# Fedora/RHEL
dnf update vips

# From source with patch applied
git clone https://github.com/libvips/libvips.git
cd libvips
git checkout d4ce337c76bff1b278d7085c3c4f4725e3aa6ece
./autogen.sh && make && sudo make install

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/TechLibvips

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-404
  • Technical References
  • GitHub Project Repository

  • VulDB CTI ID #347652

  • VulDB ID #347652

  • VulDB Submission ID #758691
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Issue #4875

  • GitHub Pull Request #4888
  • Related CVEs
  • CVE-2026-6491: libvips Buffer Overflow Vulnerability

  • CVE-2026-3283: Libvips Out-of-Bounds Read Vulnerability

  • CVE-2026-3284: Libvips Integer Overflow Vulnerability

  • CVE-2026-3145: Libvips Buffer Overflow Vulnerability
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