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

CVE-2026-2913: Libvips Buffer Overflow Vulnerability

CVE-2026-2913 is a heap-based buffer overflow vulnerability in Libvips up to 8.19.0 affecting the vips_source_read_to_memory function. This article covers technical details, affected versions, impact, and mitigation.

Published: February 27, 2026

CVE-2026-2913 Overview

A heap-based buffer overflow vulnerability has been identified in libvips up to version 8.19.0. The vulnerability affects the vips_source_read_to_memory function located in libvips/iofuncs/source.c. This manipulation causes a heap-based buffer overflow when processing custom seekable sources larger than 4 GiB due to length truncation issues when converting a 64-bit length value to a 32-bit unsigned integer.

Critical Impact

While the vulnerability allows for potential memory corruption through heap-based buffer overflow, the impact is limited to local attack scenarios involving custom seekable sources exceeding 4 GiB in size, with the crash occurring in user code rather than within libvips itself.

Affected Products

  • libvips versions up to 8.19.0

Discovery Timeline

  • 2026-02-22 - CVE CVE-2026-2913 published to NVD
  • 2026-02-24 - Last updated in NVD database

Technical Details for CVE-2026-2913

Vulnerability Analysis

The vulnerability exists in the vips_source_read_to_memory function within libvips/iofuncs/source.c. When processing large source files, the function fails to properly validate the source length before truncating it from a 64-bit integer to a 32-bit unsigned integer. This numeric truncation occurs when the source->length value is cast to guint for the g_byte_array_set_size function call.

The exploit requires local access to the system and has high attack complexity, as it specifically targets custom seekable sources larger than 4 GiB. The vulnerability is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), indicating memory boundary violations that can lead to heap corruption.

Root Cause

The root cause is a numeric truncation error in the vips_source_read_to_memory function. The original code directly cast source->length (a 64-bit value) to a guint (32-bit unsigned integer) without validating whether the length exceeds UINT_MAX. When processing sources larger than 4 GiB, this truncation causes incorrect buffer allocation sizes, leading to heap-based buffer overflow conditions.

Attack Vector

The attack vector is local, requiring an attacker to have access to the target system. The attacker must craft or provide a custom seekable source larger than 4 GiB to trigger the vulnerability. The attack complexity is rated as high due to the specific conditions required—the source must be seekable, exceed the 4 GiB threshold, and be processed through the affected function path.

c
// Security patch demonstrating the fix
// Source: https://github.com/libvips/libvips/commit/a56feecbe9ed66521d9647ec9fbcd2546eccd7ee

	g_assert(!source->header_bytes);
	g_assert(source->length >= 0);

+	if (G_UNLIKELY(source->length > UINT_MAX)) {
+		vips_error(vips_connection_nick(VIPS_CONNECTION(source)),
+			"%s", _("length overflow"));
+		return -1;
+	}
+
	if (vips_source_rewind(source))
		return -1;

	/* We know the length, so we can size the buffer correctly and read
	 * directly to it.
	 */
	byte_array = g_byte_array_new();
-	g_byte_array_set_size(byte_array, source->length);
+	g_byte_array_set_size(byte_array, (guint) source->length);

	read_position = 0;
	q = byte_array->data;

Source: GitHub Commit Details

Detection Methods for CVE-2026-2913

Indicators of Compromise

  • Unexpected application crashes when processing image sources larger than 4 GiB
  • Memory corruption errors in applications using libvips with custom seekable sources
  • Abnormal memory allocation patterns in processes utilizing the vips_source_read_to_memory function

Detection Strategies

  • Monitor for crashes or segmentation faults in applications linked against libvips versions prior to the patched version
  • Implement file size validation logging for sources being processed through libvips to identify potential exploitation attempts
  • Use memory debugging tools (such as AddressSanitizer or Valgrind) to detect heap-based buffer overflow conditions in development and testing environments

Monitoring Recommendations

  • Enable application crash reporting and analyze stack traces for crashes originating from libvips/iofuncs/source.c
  • Audit applications using libvips for custom seekable source implementations that may process files larger than 4 GiB
  • Implement runtime monitoring for memory allocation anomalies in systems processing untrusted image data

How to Mitigate CVE-2026-2913

Immediate Actions Required

  • Identify all systems and applications utilizing libvips versions up to 8.19.0
  • Review application code for usage of custom seekable sources that may exceed 4 GiB
  • Apply the official security patch from the libvips repository immediately
  • Consider implementing input validation to reject sources larger than 4 GiB as a temporary measure until patching is complete

Patch Information

The vulnerability has been addressed in commit a56feecbe9ed66521d9647ec9fbcd2546eccd7ee. The fix adds a bounds check to verify that source->length does not exceed UINT_MAX before proceeding with memory allocation. If the length exceeds this limit, the function now returns an error with an appropriate "length overflow" message instead of silently truncating the value.

The patch can be obtained from the official libvips GitHub repository. Organizations should update to a version containing this fix as soon as possible.

Workarounds

  • Implement application-level validation to reject or handle sources larger than 4 GiB before passing them to libvips
  • Avoid using custom seekable sources with libvips until the patch is applied
  • Consider using non-seekable source alternatives where feasible for large file processing
bash
# Verify libvips version and check if patch is applied
vips --version

# Check if the patched commit is present in your installation
# Navigate to libvips source directory and run:
git log --oneline | grep a56feecbe9ed66521d9647ec9fbcd2546eccd7ee

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibvips

  • SeverityLOW

  • CVSS Score2.0

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-119
  • Technical References
  • GitHub Project Overview

  • GitHub Issue #4857

  • GitHub Issue #4857 Discussion

  • GitHub Issue #4857 Comment

  • VulDB #347222 CTI

  • VulDB #347222

  • VulDB Submission #755224
  • Vendor Resources
  • GitHub Commit Details
  • Related CVEs
  • CVE-2026-6491: libvips Buffer Overflow Vulnerability

  • CVE-2026-3145: Libvips Buffer Overflow Vulnerability

  • CVE-2026-3147: Libvips Buffer Overflow Vulnerability

  • CVE-2026-3283: Libvips Out-of-Bounds Read 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