CVE-2026-25646: libpng Heap-based Buffer Overflow
Vulnerability summary
CVE-2026-25646 is a high (CVSS 8.3) Heap-based Buffer Overflow vulnerability in libpng. EPSS estimates a 0.72% chance of exploitation in the next 30 days, higher than 53% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 26 · Related 10Timeline
- 10-02-2026PublishedVulnerability first disclosed.
- 01-09-2026Last modifiedVulnerability information updated.
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 metrics
11 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- NVDNIST8.3HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · AlpineEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated7.0HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.72%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
-0.25 pp
From 0.97% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLibpng
Maturity: poc
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-126Buffer Over-readThe product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.
- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
Affected systems
Suse20 products
- libpng12&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 1.2.57-150000.4.6.1
- libpng12&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 1.2.57-150000.4.6.1
- libpng12&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 1.2.57-150000.4.6.1
- libpng12&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS< 1.2.57-150000.4.6.1
- libpng12&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7< 1.2.57-150000.4.6.1
Redhat10 products
- libpng< 2:1.5.13-8.el7_9.2
- libpng-debuginfo< 2:1.5.13-8.el7_9.2
- libpng-devel< 2:1.5.13-8.el7_9.2
- libpng-static< 2:1.5.13-8.el7_9.2
- libpng12< 0:1.2.57-6.el8_10 | < 0:1.2.50-10.el7_9.1 | < 0:1.2.57-5.el8_6.1 | < 0:1.2.57-5.el8_8.1 | < 0:1.2.57-5.el8_2.1 | < 0:1.2.57-5.el8_4.1
Opensuse4 products
- libpng12&distro=openSUSE Leap 15.6< 1.2.57-150000.4.6.1
- libpng12&distro=openSUSE Tumbleweed< 1.2.59-6.1
- libpng16&distro=openSUSE Leap 15.6< 1.6.40-150600.3.12.1
- libpng16&distro=openSUSE Tumbleweed< 1.6.55-1.1
Mageia2 products
- libpng< 1.6.38-1.4.mga9
- libpng12< 1.2.59-3.1.mga9
Ubuntu2 products
- libpng< 1.2.50-1ubuntu2.14.04.3+esm1 | < 1.2.54-1ubuntu1.1+esm2
- libpng1.6< 1.6.20-2ubuntu0.1~esm3 | < 1.6.34-1ubuntu0.18.04.2+esm2 | < 1.6.37-2ubuntu0.1~esm2 | < 1.6.55-1 | < 1.6.37-3ubuntu0.4 | < 1.6.43-5ubuntu0.5 | < 1.6.50-1ubuntu0.4
Alpine1 product
- libpng< 1.6.55-r0
Chainguard1 product
- libpng< 1.6.55-r0
Debian1 product
- libpng1.6< 1.6.55-1 | < 1.6.39-2+deb12u3 | < 1.6.48-1+deb13u3
Libpng1 product
- libpng< 1.6.55
Pnggroup1 product
- libpng< 1.6.55
Wolfi1 product
- libpng< 1.6.55-r0
11 vendors · 44 products
References
92 links- github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3X Refsource CONFIRMARTICLEREPORTAdvisoryExploitVendor Advisory
- github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88X Refsource MISCARTICLEFIXPatch