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
    • 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-25646

CVE-2026-25646: LIBPNG Buffer Overflow Vulnerability

CVE-2026-25646 is a buffer overflow flaw in LIBPNG affecting the png_set_quantize() function that causes out-of-bounds reads and infinite loops. This article covers the technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-25646 Overview

CVE-2026-25646 is an out-of-bounds read vulnerability in libpng, the widely-used reference library for reading, creating, and manipulating PNG (Portable Network Graphics) raster image files. The vulnerability exists in the png_set_quantize() API function and affects versions prior to 1.6.55.

When the png_set_quantize() function is called with no histogram and the number of colors in the palette exceeds twice the maximum supported by the user's display, certain palettes cause the function to enter an infinite loop that reads past the end of an internal heap-allocated buffer. Critically, the PNG images that trigger this vulnerability are valid according to the PNG specification, making detection more challenging.

Critical Impact

This heap-based buffer overflow (CWE-122) can lead to denial of service through infinite loops, potential information disclosure via out-of-bounds memory reads, and possible application crashes when processing maliciously crafted PNG images.

Affected Products

  • libpng versions prior to 1.6.55
  • Applications using the png_set_quantize() API function
  • Systems processing user-supplied PNG images with color quantization enabled

Discovery Timeline

  • 2026-02-10 - CVE CVE-2026-25646 published to NVD
  • 2026-02-11 - Last updated in NVD database

Technical Details for CVE-2026-25646

Vulnerability Analysis

This vulnerability is classified as a heap-based buffer overflow (CWE-122) that manifests as an out-of-bounds read condition. The root of the issue lies in the png_set_quantize() function's handling of color palettes when no histogram is provided.

The function is designed to reduce the number of colors in a PNG image to match display capabilities. However, when processing palettes where the color count significantly exceeds (more than double) the user-specified maximum, the algorithm fails to properly validate buffer boundaries. This leads to memory being read beyond the allocated heap buffer while the function becomes trapped in an infinite loop.

The attack surface is particularly concerning because the triggering conditions use valid PNG images per the specification—standard image validation would not flag these files as malformed.

Root Cause

The vulnerability stems from insufficient bounds checking in the png_set_quantize() function when processing color palettes without a histogram. The function's loop control logic does not properly account for edge cases where the palette size ratio triggers continuous iteration past the allocated buffer boundaries.

Attack Vector

This vulnerability can be exploited via network delivery of malicious PNG files. An attacker can craft a PNG image with a specific color palette configuration that, when processed by an application calling png_set_quantize(), triggers the vulnerable code path. Exploitation requires no authentication or user interaction beyond the application processing the PNG file.

Attack scenarios include:

  • Uploading malicious PNG files to web applications that perform server-side image processing
  • Sending PNG attachments to applications with automatic image rendering
  • Embedding PNG images in documents processed by vulnerable applications

The following patch was applied to address this vulnerability:

c
/* pngrtran.c - transforms the data in a row for PNG readers
 *
- * Copyright (c) 2018-2025 Cosmin Truta
+ * Copyright (c) 2018-2026 Cosmin Truta
 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
 * Copyright (c) 1996-1997 Andreas Dilger
 * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.

Source: GitHub Commit Update

The complete patch includes proper bounds validation in the png_set_quantize function to prevent the out-of-bounds read and infinite loop conditions. For full technical details, see the GitHub Security Advisory.

Detection Methods for CVE-2026-25646

Indicators of Compromise

  • Application processes hanging or consuming excessive CPU when processing PNG files
  • Memory access violations or segmentation faults during PNG image processing
  • Abnormal memory consumption patterns in image processing services
  • Process crashes with stack traces referencing png_set_quantize() or related libpng functions

Detection Strategies

  • Monitor application logs for crashes or hangs during PNG processing operations
  • Implement static analysis scanning to identify libpng version in deployed applications
  • Use software composition analysis (SCA) tools to inventory libpng dependencies across the environment
  • Deploy anomaly detection for CPU-bound processes that may indicate infinite loop exploitation

Monitoring Recommendations

  • Enable resource monitoring for services that process user-supplied images
  • Set up alerts for abnormal memory read patterns in image processing pipelines
  • Monitor for increased crash rates in applications with libpng dependencies
  • Implement timeout mechanisms for image processing operations to detect infinite loops

How to Mitigate CVE-2026-25646

Immediate Actions Required

  • Upgrade libpng to version 1.6.55 or later immediately
  • Audit all applications for dependencies on vulnerable libpng versions
  • Consider temporarily disabling color quantization features if patching is delayed
  • Implement input validation to restrict PNG color palette sizes before processing

Patch Information

The vulnerability is fixed in libpng version 1.6.55. The patch addresses the bounds checking issue in the png_set_quantize() function. The security fix was committed by Joshua Inscoe and is available through:

  • GitHub Commit with Fix
  • GitHub Security Advisory
  • Openwall OSS Security Discussion

Workarounds

  • Avoid using the png_set_quantize() function with user-supplied PNG images until patched
  • Implement pre-processing validation to reject PNG images with excessive palette sizes
  • Use application-level sandboxing to isolate PNG processing operations
  • Deploy resource limits (CPU time, memory) on image processing services to contain infinite loop impact
bash
# Check installed libpng version
pkg-config --modversion libpng

# Update libpng on Debian/Ubuntu systems
sudo apt update && sudo apt install libpng16-16

# Verify the updated version
ldconfig -p | grep libpng

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibpng

  • SeverityHIGH

  • CVSS Score8.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory

  • Openwall OSS Security Post
  • Related CVEs
  • CVE-2026-33636: LIBPNG Buffer Overflow Vulnerability

  • CVE-2026-3713: libpng Buffer Overflow Vulnerability

  • CVE-2026-22695: LIBPNG Buffer Overflow Vulnerability

  • CVE-2026-22801: LIBPNG 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