CVE-2025-66293CWE-125

CVE-2025-66293

High · published December 4, 2025

CVSS v3.1
7.1
EPSS
0%
Percentile
27.9
In the wild
Unconfirmed
What it is

⚡ An out-of-bounds read vulnerability in libpng can let attackers peek into memory, potentially revealing sensitive data! 🔍 Think of it like a waiter spilling a bit of soup when pouring — the soup is still mostly in the bowl, but that little extra can cause a mess! In the case of libpng, valid PNG images with partial transparency and gamma correction spill over, revealing data from beyond the intended memory space. An attacker could exploit a specially crafted PNG file to read data up to 1012 bytes beyond the expected limit, potentially exposing sensitive information. This could lead to serious breaches, especially when handling images in sensitive applications!

Put simply

Think of it like a waiter spilling a bit of soup when pouring — the soup is still mostly in the bowl, but that little extra can cause a mess! In the case of libpng, valid PNG images with partial transparency and gamma correction spill over, revealing data from beyond the intended memory space. This vulnerability arises from improper internal state management in libpng's API, specifically when processing valid PNG palette images. It allows reading beyond the allocated memory for the png_sRGB_base array, creating a window for potential information leaks.

What to do

An attacker could exploit a specially crafted PNG file to read data up to 1012 bytes beyond the expected limit, potentially exposing sensitive information. This could lead to serious breaches, especially when handling images in sensitive applications! Upgrade libpng to version 1.6.52 or later immediately to patch this vulnerability. Ensure that your application processes images safely and consider reviewing your image handling routines for other potential vulnerabilities. Don't forget to test thoroughly after the upgrade! You've got this! Update now and keep your data safe! 🛡️

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00354 · 27.9th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-12-04T02:15Z
Affected products (1)
ProductVersionsFixed in
libpng/libpng< 1.6.521.6.52
References (8)
EPSS history
Timeline
  • 03 DEC 20:33Z
    LIBPNG has an out-of-bounds read in png_image_read_composite
    cvelistv5