CVE-2025-66293
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.35%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.1 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- EPSS
- 0.35% probability · 29th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-125
- Affected
- libpng/libpng
- Source
- security-advisories@github.com
References
- https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1Patch
- https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484aPatch
- https://github.com/pnggroup/libpng/issues/764Exploit, Issue Tracking, Patch
- https://github.com/pnggroup/libpng/security/advisories/GHSA-9mpm-9pxh-mg4fExploit, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2025/12/03/6Mailing List
- http://www.openwall.com/lists/oss-security/2025/12/03/7Mailing List
- http://www.openwall.com/lists/oss-security/2025/12/03/8Mailing List
- https://github.com/pnggroup/libpng/issues/764Exploit, Issue Tracking, Patch
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.