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

In multiple locations, there is a possible way to achieve remote code execution due to a heap buffer overflow. This could lead to remote escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

Other sources

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

— GitLab

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

48 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
IBM DS8A00( R10.0 - R10.1 )<=10.1.3.0 - 10.11.35.0
IBM DS8900F ( R9.4)<=89.40.83.0-89.44.25.0
Google Android
Microsoft Windows Server 2012 R2<6.3.9600.23132
6.3.9600.23132
Microsoft Windows Server 2012 R2<6.3.9600.23132
6.3.9600.23132
Microsoft Windows Server 2016<10.0.14393.9060
10.0.14393.9060
Microsoft Windows 11=26H1, >=10.0.28000<10.0.28000.1836
10.0.28000.1836
Microsoft Windows 10=1607, >=10.0.14393<10.0.14393.9060
10.0.14393.9060
Microsoft Windows 10=1607, >=10.0.14393<10.0.14393.9060
10.0.14393.9060
Microsoft Windows Server 2012<6.2.9200.26026
6.2.9200.26026
Microsoft Windows Server 2016<10.0.14393.9060
10.0.14393.9060
Microsoft Windows Server 2012<6.2.9200.26026
6.2.9200.26026
Microsoft Windows 11=26H1, >=10.0.28000<10.0.28000.1836
10.0.28000.1836
Microsoft Windows 11=23H2, >=10.0.22631<10.0.22631.6936
10.0.22631.6936
Microsoft Windows 11=25H2, >=10.0.26200<10.0.26200.8246
10.0.26200.8246
Microsoft Windows 11=24H2, >=10.0.26100<10.0.26100.8246
10.0.26100.8246
Microsoft Windows 11=23H2, >=10.0.22631<10.0.22631.6936
10.0.22631.6936
Microsoft Windows 11=25H2, >=10.0.26200<10.0.26200.8246
10.0.26200.8246
Microsoft Windows 11=24H2, >=10.0.26100<10.0.26100.8246
10.0.26100.8246
Microsoft Windows Server 2022, 23H2 Edition<10.0.25398.2274
10.0.25398.2274
Microsoft Windows Server 2025<10.0.26100.32690
10.0.26100.32690
Microsoft Windows 10=22H2, >=10.0.19045<10.0.19045.7184
10.0.19045.7184
Microsoft Windows Server 2025<10.0.26100.32690
10.0.26100.32690
Microsoft Windows 10=22H2, >=10.0.19045<10.0.19045.7184
10.0.19045.7184
Microsoft Windows 10=22H2, >=10.0.19045<10.0.19045.7184
10.0.19045.7184
Microsoft Windows 10=21H2, >=10.0.19044<10.0.19044.7184
10.0.19044.7184
Microsoft Windows 10=21H2, >=10.0.19044<10.0.19044.7184
10.0.19044.7184
Microsoft Windows 10=21H2, >=10.0.19044<10.0.19044.7184
10.0.19044.7184
Microsoft Windows Server 2022<10.0.20348.5020
10.0.20348.5020
Microsoft Windows Server 2019<10.0.17763.8644
10.0.17763.8644
Microsoft Windows Server 2022<10.0.20348.5020
10.0.20348.5020
Microsoft Windows 10=1809, >=10.0.17763<10.0.17763.8644
10.0.17763.8644
Microsoft Windows Server 2019<10.0.17763.8644
10.0.17763.8644
All of the following
azurelinux/libpng<1.6.51-1
1.6.51-1
Microsoft Azure Linux=3.0
All of the following
azurelinux/libpng<1.6.51-1
1.6.51-1
Microsoft CBL-Mariner=2.0
Microsoft Windows 10=1809, >=10.0.17763<10.0.17763.8644
10.0.17763.8644
android/platform/external/libpng>=17-next:0<17-next:2026-06-01
17-next:2026-06-01
android/platform/external/libpng>=15:0<15:2026-06-01
15:2026-06-01
android/platform/external/libpng>=16:0<16:2026-06-01
16:2026-06-01
android/platform/external/libpng>=16-qpr2:0<16-qpr2:2026-06-01
16-qpr2:2026-06-01
android/platform/external/libpng>=14:0<14:2026-06-01
14:2026-06-01
debian/libpng1.6
1.6.39-2+deb12u51.6.39-2+deb12u61.6.48-1+deb13u51.6.48-1+deb13u61.6.59-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.3.9600.23132Patch KB5082126
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.14393.9060Patch KB5082198
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.28000.1836Patch KB5083768
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.2.9200.26026Patch KB5082127
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.22631.6936Patch KB5082052
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.26200.8246Patch KB5083769
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.26100.8246Patch KB5083769
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.25398.2274Patch KB5082060
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.26100.32690Patch KB5082063
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.19045.7184Patch KB5082200
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.19044.7184Patch KB5082200
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.20348.5020Patch KB5082142
  13. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.17763.8644Patch KB5082123
  14. Upgrade

    Upgrade azurelinux/libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51-1
  15. Upgrade

    Upgrade android/platform/external/libpng to a version that resolves this vulnerability.

    Fixed in 17-next:2026-06-01
  16. Upgrade

    Upgrade android/platform/external/libpng to a version that resolves this vulnerability.

    Fixed in 15:2026-06-01
  17. Upgrade

    Upgrade android/platform/external/libpng to a version that resolves this vulnerability.

    Fixed in 16:2026-06-01
  18. Upgrade

    Upgrade android/platform/external/libpng to a version that resolves this vulnerability.

    Fixed in 16-qpr2:2026-06-01
  19. Upgrade

    Upgrade android/platform/external/libpng to a version that resolves this vulnerability.

    Fixed in 14:2026-06-01
  20. Upgrade

    Upgrade debian/libpng1.6 to a version that resolves this vulnerability.

    Fixed in 1.6.39-2+deb12u5Fixed in 1.6.39-2+deb12u6Fixed in 1.6.48-1+deb13u5Fixed in 1.6.48-1+deb13u6Fixed in 1.6.59-1
  21. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.51

Event History

Nov 23, 2025
Exploit Published
via GitHub·06:34 PM
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
Jun 1, 2026
Advisory Published
via OSV·12:00 AM
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software
Aug 19, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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