CVE-2026-25646: LIBPNG has a heap buffer overflow in png_set_quantize

Published Feb 9, 2026
·
Updated

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.55, an out-of-bounds read vulnerability exists in the pngsetquantize() API function. When the function is called with no histogram and the number of colors in the palette is more than twice the maximum supported by the user's display, certain palettes will cause the function to enter into an infinite loop that reads past the end of an internal heap-allocated buffer. The images that trigger this vulnerability are valid per the PNG specification. This vulnerability is fixed in 1.6.55.

Affected Software

13 affected componentsFixes available
libpng LIBPNG<1.6.55
libpng LIBPNG<1.6.55
IBM watsonx.data<=2.4.0 - 2.4.0 patch 8
debian/libpng1.6
1.6.37-3+deb11u21.6.39-2+deb12u31.6.48-1+deb13u31.6.55-1
ubuntu/libpng<1.2.50-1ubuntu2.14.04.3+esm1
1.2.50-1ubuntu2.14.04.3+esm1
ubuntu/libpng<1.2.54-1ubuntu1.1+esm2
1.2.54-1ubuntu1.1+esm2
ubuntu/libpng1.6<1.6.20-2ubuntu0.1~esm3
1.6.20-2ubuntu0.1~esm3
ubuntu/libpng1.6<1.6.34-1ubuntu0.18.04.2+esm2
1.6.34-1ubuntu0.18.04.2+esm2
ubuntu/libpng1.6<1.6.37-2ubuntu0.1~esm2
1.6.37-2ubuntu0.1~esm2
ubuntu/libpng1.6<1.6.37-3ubuntu0.4
1.6.37-3ubuntu0.4
ubuntu/libpng1.6<1.6.43-5ubuntu0.5
1.6.43-5ubuntu0.5
ubuntu/libpng1.6<1.6.50-1ubuntu0.4
1.6.50-1ubuntu0.4
ubuntu/libpng1.6<1.6.55-1
1.6.55-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.6.37-3+deb11u2Fixed in 1.6.39-2+deb12u3Fixed in 1.6.48-1+deb13u3Fixed in 1.6.55-1
  2. Upgrade

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

    Fixed in 1.2.50-1ubuntu2.14.04.3+esm1
  3. Upgrade

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

    Fixed in 1.2.54-1ubuntu1.1+esm2
  4. Upgrade

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

    Fixed in 1.6.20-2ubuntu0.1~esm3
  5. Upgrade

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

    Fixed in 1.6.34-1ubuntu0.18.04.2+esm2
  6. Upgrade

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

    Fixed in 1.6.37-2ubuntu0.1~esm2
  7. Upgrade

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

    Fixed in 1.6.37-3ubuntu0.4
  8. Upgrade

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

    Fixed in 1.6.43-5ubuntu0.5
  9. Upgrade

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

    Fixed in 1.6.50-1ubuntu0.4
  10. Upgrade

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

    Fixed in 1.6.55-1
  11. Upgrade

    Upgrade libpng to a version that resolves this vulnerability.

    Fixed in 1.6.55Patch CVE-2026-25646

Event History

Feb 10, 2026
CVE Published
via MITRE·05:04 PM
Data Sourced
via MITRE·05:04 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·06:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness
Feb 13, 2026
Data Sourced
via NVD·08:43 PM
RemedyAffected Software
Updated
via NVD·08:43 PM
Severity
Feb 18, 2026
Event
via FIRST·12:00 AM
Jun 30, 2026
Updated
via NVD·03:17 AM
SeverityWeakness
Jul 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 11, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 19, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-25646?

CVE-2026-25646 is classified as a high-severity vulnerability due to the potential for heap buffer overflow.

2

How do I fix CVE-2026-25646?

To fix CVE-2026-25646, upgrade to Libpng version 1.6.55 or later.

3

What impact does CVE-2026-25646 have on applications using Libpng?

CVE-2026-25646 can lead to arbitrary code execution or data corruption in applications utilizing affected versions of Libpng.

4

Is my application vulnerable to CVE-2026-25646?

If your application uses Libpng versions prior to 1.6.55, it is vulnerable to CVE-2026-25646.

5

What should I do if I cannot immediately upgrade to fix CVE-2026-25646?

If immediate upgrade is not possible, mitigate CVE-2026-25646 by restricting untrusted PNG file parsing in your application.

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