CVE-2025-66293 Details
Description
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to 1.6.52, an out-of-bounds read vulnerability in libpng's simplified API allows reading up to 1012 bytes beyond the png_sRGB_base[512] array when processing valid palette PNG images with partial transparency and gamma correction. The PNG files that trigger this vulnerability are valid per the PNG specification; the bug is in libpng's internal state management. Upgrade to libpng 1.6.52 or later.
A high-severity out-of-bounds read vulnerability has been identified in libpng versions 1.6.0 prior to 1.6.52. This vulnerability resides in the simplified API and allows reading up to 1012 bytes beyond the png_sRGB_base[512] array. The issue occurs when processing valid palette PNG images that include partial transparency and gamma correction. The vulnerability is rooted in libpng's internal state management, particularly a flag synchronization error that misinterprets sRGB data as linear, leading to the out-of-bounds access.
Users are advised to upgrade to libpng version 1.6.52 or later. If an immediate upgrade is not possible, an explicit background color can be provided to the png_image_finish_read function, or the low-level API can be used instead of the simplified API. Additionally, requesting alpha-preserving output can help avoid the composition path that leads to the vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pnggroup/libpng/issues/764 | CISA-ADP | ExploitIssue TrackingPatch |
| http://www.openwall.com/lists/oss-security/2025/12/03/6 | CVE | Mailing List |
| http://www.openwall.com/lists/oss-security/2025/12/03/7 | CVE | Mailing List |
| http://www.openwall.com/lists/oss-security/2025/12/03/8 | CVE | Mailing List |
| https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1 | [email protected] | Patch |
| https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a | [email protected] | Patch |
| https://github.com/pnggroup/libpng/issues/764 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/pnggroup/libpng/security/advisories/GHSA-9mpm-9pxh-mg4f | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libpng libpng | < 1.6.52 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Dec 16, 2025 | Initial Analysis | [email protected] |
| Dec 4, 2025 | CVE Modified | CVE |
| Dec 4, 2025 | CVE Modified | CVE |
| Dec 3, 2025 | CVE Modified | CVE |
| Dec 3, 2025 | New CVE Received | [email protected] |
| Dec 3, 2025 | CVE Modified | CISA-ADP |