CVE-2026-25646: CWE-122: Heap-based Buffer Overflow in pnggroup libpng
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 png_set_quantize() 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.
AI Analysis
Technical Summary
CVE-2026-25646 is a heap-based buffer overflow vulnerability in the libpng library's png_set_quantize() function. When invoked without a histogram and with a palette exceeding twice the maximum display colors, certain valid PNG images cause the function to enter an infinite loop that reads beyond the allocated heap buffer. This can lead to out-of-bounds memory reads, potentially leaking sensitive information or causing denial of service via crashes. The vulnerability affects libpng versions prior to 1.6.55 and has been addressed in version 1.6.55. Red Hat has released security advisories and patches for affected distributions, including RHEL 7 Extended Lifecycle Support.
Potential Impact
The vulnerability allows an attacker to cause out-of-bounds heap reads, which can lead to information disclosure such as leaking cryptographic keys or memory addresses, aiding in bypassing protection mechanisms like ASLR. It can also cause denial of service by crashing the application through segmentation faults. The CVSS v3.1 base score is 8.3 (High severity), reflecting network attack vector, high attack complexity, no privileges or user interaction required, and high impact on availability with low impact on confidentiality and integrity. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in libpng version 1.6.55 and later. Users and administrators should upgrade to version 1.6.55 or later to remediate this vulnerability. Red Hat has released updated packages for affected products, including Red Hat Enterprise Linux 7 Extended Lifecycle Support. Where upgrading is not immediately possible, no effective mitigation meeting Red Hat's criteria is currently available. Users should monitor vendor advisories for updates and apply patches as soon as they are released.
CVE-2026-25646: CWE-122: Heap-based Buffer Overflow in pnggroup libpng
Description
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 png_set_quantize() 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.
CVSS v4.0
Score 8.3high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-25646 is a heap-based buffer overflow vulnerability in the libpng library's png_set_quantize() function. When invoked without a histogram and with a palette exceeding twice the maximum display colors, certain valid PNG images cause the function to enter an infinite loop that reads beyond the allocated heap buffer. This can lead to out-of-bounds memory reads, potentially leaking sensitive information or causing denial of service via crashes. The vulnerability affects libpng versions prior to 1.6.55 and has been addressed in version 1.6.55. Red Hat has released security advisories and patches for affected distributions, including RHEL 7 Extended Lifecycle Support.
Potential Impact
The vulnerability allows an attacker to cause out-of-bounds heap reads, which can lead to information disclosure such as leaking cryptographic keys or memory addresses, aiding in bypassing protection mechanisms like ASLR. It can also cause denial of service by crashing the application through segmentation faults. The CVSS v3.1 base score is 8.3 (High severity), reflecting network attack vector, high attack complexity, no privileges or user interaction required, and high impact on availability with low impact on confidentiality and integrity. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in libpng version 1.6.55 and later. Users and administrators should upgrade to version 1.6.55 or later to remediate this vulnerability. Red Hat has released updated packages for affected products, including Red Hat Enterprise Linux 7 Extended Lifecycle Support. Where upgrading is not immediately possible, no effective mitigation meeting Red Hat's criteria is currently available. Users should monitor vendor advisories for updates and apply patches as soon as they are released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-04T05:15:41.791Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-25646","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4756","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7032","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9254","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:12274","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7239","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:15087","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14773","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10097","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17596","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6553","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7243","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3577","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3551","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9686","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6445","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6439","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7035","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6466","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7036","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6467","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7033","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6469","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7034","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6468","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3573","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4222","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3575","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4221","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3574","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3969","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3576","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3968","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3405","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3031","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4728","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4732","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4731","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4730","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4729","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4306","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9255","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8748","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8746","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8747","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16174","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9687","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:5606","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4501","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6732","vendor":"Red Hat"}]
Threat ID: 698b6b654b57a58fa11c68ab
Added to database: 02/10/2026, 17:31:17 UTC
Last enriched: 08/11/2026, 13:21:44 UTC
Last updated: 09/10/2026, 19:36:53 UTC
Views: 837
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.