CVE-2025-64720: LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication

Published Nov 22, 2025
·
Updated

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 pnginitreadtransformations 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.

Other sources

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

Microsoft

Affected Software

35 affected componentsFixes available
libpng LIBPNG>=1.6.0<1.6.51
libpng LIBPNG>=1.6.0<1.6.51
Microsoft azl3 libpng 1.6.40-1
Microsoft cbl2 libpng 1.6.39-1
Microsoft Windows Server 2012 R2
Microsoft Windows 11=23H2
Microsoft Windows 11=25H2
Microsoft Windows Server 2012 R2
Microsoft Windows 10=22H2
Microsoft Windows 11=25H2
Microsoft Windows 10=21H2
Microsoft Windows 10=22H2
Microsoft Windows 10=22H2
Microsoft Windows Server 2025
Microsoft Windows Server 2022
Microsoft Windows Server 2012
Microsoft Windows Server 2012
Microsoft Windows Server 2022
Microsoft Windows Server 2016
Microsoft Windows 11=26H1
Microsoft Windows Server 2016
Microsoft Windows 10=1607
Microsoft Windows 10=1607
Microsoft Windows 11=26H1
Microsoft Windows Server 2025
Microsoft Windows 11=24H2
Microsoft Windows 11=24H2
Microsoft Windows 11=23H2
Microsoft Windows 10=21H2
Microsoft Windows 10=21H2
Microsoft Windows Server 2022, 23H2 Edition
Microsoft Windows Server 2019
Microsoft Windows 10=1809
Microsoft Windows 10=1809
Microsoft Windows Server 2019

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51Patch CVE-2025-64505
  2. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51Patch CVE-2025-64506
  3. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51Patch CVE-2025-64720
  4. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51Patch CVE-2025-65018

Event History

Nov 24, 2025
CVE Published
via MITRE·11:45 PM
Data Sourced
via MITRE·11:45 PM
DescriptionSeverityWeakness
Nov 25, 2025
Data Sourced
via Red Hat·12:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 27, 2025
Data Sourced
via Microsoft·01:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:04 AM
Affected Software
Updated
via Microsoft·09:04 AM
DescriptionWeakness
Updated
via Microsoft·09:04 AM
Affected Software
Updated
via Microsoft·09:04 AM
WeaknessAffected Software
Updated
via Microsoft·09:04 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-64720?

CVE-2025-64720 is classified as a medium severity vulnerability due to the potential for out-of-bounds reads.

2

How do I fix CVE-2025-64720?

To fix CVE-2025-64720, upgrade LIBPNG to version 1.6.51 or later.

3

What versions of LIBPNG are affected by CVE-2025-64720?

CVE-2025-64720 affects all LIBPNG versions from 1.6.0 to before 1.6.51.

4

What impact does CVE-2025-64720 have on applications using LIBPNG?

CVE-2025-64720 can lead to unexpected behavior or crashes in applications that process palette images.

5

Is CVE-2025-64720 a public vulnerability?

Yes, CVE-2025-64720 is a publicly disclosed vulnerability that has visibility within the cybersecurity community.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203