Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2025-64720

LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication
Back to all
CVE

CVE-2025-64720

LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, an out-of-bounds read vulnerability exists in pngimagereadcomposite when processing palette images with PNGFLAGOPTIMIZEALPHA enabled. The palette compositing code in pnginitread_transformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. This issue has been patched in version 1.6.51.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64720.json, https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643, https://github.com/pnggroup/libpng/issues/686, https://github.com/pnggroup/libpng/pull/751, https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww, https://nvd.nist.gov/vuln/detail/CVE-2025-64720

Severity

7.1

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.1
EPSS Probability
0.00074%
EPSS Percentile
0.22699%
Introduced Version
c53778ff53a73ad2d676602f5dc7019566be5058,0,1.6.0
Fix Available
49363adcfaf098748d7a4c8c624ad8c45a8c3a86,08da33b4c88cfcd36e5a706558a8d7e0e4773643,0:1.6.34-1.el8_10,2:1.6.34-9.el8_10,2:1.6.37-12.el9_7.1,1.6.39-2+deb12u1,1.6.37-3+deb11u1,1.6.48-1+deb13u1,0:1.6.43-5ubuntu0.1,0:1.6.34-1ubuntu0.18.04.2+esm1,0:1.6.37-2ubuntu0.1~esm1,0:1.6.37-3ubuntu0.1,1.6.51,1.6.53-r0,1.6.51-r0,0:140.4.0-1.amzn2.0.3,2:1.5.13-8.amzn2.0.6,0:1.2.50-10.amzn2.0.3,0:140.5.0-1.amzn2.0.2,0:140.5.0-1.amzn2023.0.2,2:1.6.37-10.amzn2023.0.7

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading