CVE-2025-65018: LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`

Published Nov 22, 2025
·
Updated

Libpng has been updated to version 1.6.51, which contains fixes for security vulnerabilities including CVE-2025-65018 and CVE-2025-64720.

Other sources

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, there is a heap buffer overflow vulnerability in the libpng simplified API function pngimagefinishread when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. This issue has been patched in version 1.6.51.

MITRE

LIBPNG is vulnerable to a heap buffer overflow in pngcombinerow triggered via pngimagefinishread

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 Server 2012
Microsoft Windows Server 2012
Microsoft Windows Server 2025
Microsoft Windows 11=26H1
Microsoft Windows 10=1607
Microsoft Windows Server 2012 R2
Microsoft Windows 11=24H2
Microsoft Windows Server 2016
Microsoft Windows 11=23H2
Microsoft Windows Server 2016
Microsoft Windows 11=23H2
Microsoft Windows 11=25H2
Microsoft Windows 11=24H2
Microsoft Windows 11=25H2
Microsoft Windows Server 2022, 23H2 Edition
Microsoft Windows 10=22H2
Microsoft Windows 11=26H1
Microsoft Windows 10=22H2
Microsoft Windows Server 2025
Microsoft Windows 10=21H2
Microsoft Windows 10=22H2
Microsoft Windows 10=21H2
Microsoft Windows Server 2022
Microsoft Windows 10=21H2
Microsoft Windows 10=1607
Microsoft Windows Server 2019
Microsoft Windows Server 2019
Microsoft Windows Server 2022
Microsoft Windows 10=1809
Microsoft Windows 10=1809

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-65018
  2. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

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

    Upgrade libpng to a version that resolves this vulnerability.

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

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51Patch CVE-2025-64506

Event History

Nov 24, 2025
CVE Published
via MITRE·11:50 PM
Data Sourced
via MITRE·11:50 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:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:03 AM
Affected Software
Updated
via Microsoft·09:03 AM
DescriptionWeakness
Updated
via Microsoft·09:03 AM
Affected Software
Updated
via Microsoft·09:03 AM
WeaknessAffected Software
Updated
via Microsoft·09:03 AM
Description
Apr 22, 2026
Data Sourced
via GitLab·02:07 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-65018?

CVE-2025-65018 has been classified as a high severity vulnerability due to the risk of a heap buffer overflow.

2

How do I fix CVE-2025-65018?

To mitigate CVE-2025-65018, upgrade libpng to version 1.6.51 or later.

3

What software is affected by CVE-2025-65018?

CVE-2025-65018 affects libpng versions from 1.6.0 to before 1.6.51.

4

What type of vulnerability is CVE-2025-65018?

CVE-2025-65018 is a heap buffer overflow vulnerability found in the simplified API function of libpng.

5

When was CVE-2025-65018 disclosed?

CVE-2025-65018 was disclosed with available patches in early 2025.

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