Skip to content
Fencer Intel
high 7.1

CVE-2025-64720 json

LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication

published 11mo ago modified 22d ago also EUVD-2025-199237 , JLSEC-2025-330

cvss
7.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 39%
public exploits
0
none known

Summary

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, an out-of-bounds read vulnerability exists in png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_transformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. This issue has been patched in version 1.6.51.

Patch / fix

  • julia libpng_jll 1.6.51+0
  • libpng libpng 1.6.51
  • libpng1.6 Debian 12 1.6.39-2+deb12u1
  • libpng1.6 Debian 13 1.6.48-1+deb13u1
  • libpng1.6 Debian 14 1.6.51-1

debian advisories DEBIAN-CVE-2025-64720

  • libpng1.6 Ubuntu 22.04 LTS 1.6.37-3ubuntu0.1
  • libpng1.6 Ubuntu 24.04 LTS 1.6.43-5ubuntu0.1
  • libpng1.6 Ubuntu 25.10 1.6.50-1ubuntu0.1
  • libpng1.6 Ubuntu Pro 16.04 LTS 1.6.20-2ubuntu0.1~esm2
  • libpng1.6 Ubuntu Pro 18.04 LTS 1.6.34-1ubuntu0.18.04.2+esm1
  • libpng1.6 Ubuntu Pro 20.04 LTS 1.6.37-2ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-64720

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libpng hummingbird 1 1.6.58-2.1.hum1
  • libpng-tools hummingbird 1 1.6.58-2.1.hum1
  • libpng hummingbird 1 1.6.56-1.hum1
  • libpng-tools hummingbird 1 1.6.56-1.hum1
  • java-25-openjdk RHEL 10.1 1:25.0.2.0.10-1.el10
  • java-25-openjdk RHEL 9 1:25.0.2.0.10-1.el9
  • java-25-openjdk-src RHEL 10.1 1:25.0.2.0.10-1.el10
  • java-25-openjdk-src RHEL 9 1:25.0.2.0.10-1.el9

red hat advisories RHSA-2026:80330RHSA-2026:6732RHSA-2026:0933RHSA-2026:0932RHSA-2026:0928RHSA-2026:0927

  • libpng16 Linux Micro 6.1 1.6.58-slfo.1.1_1.1
  • libpng16 Linux Micro 6.0 1.6.58-1.1
  • libpng16 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 1.6.44-160000.3.1
  • libpng16 SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 1.6.40-150600.3.3.1
  • libpng16 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +15 more 1.6.34-150000.3.12.1
  • libpng16 Linux Micro 6.0 1.6.43-2.1
  • libpng16 Linux Micro 6.1 1.6.43-slfo.1.1_2.1
  • libpng15 SLES LTSS Extended Security 12 SP5 1.5.30-10.13.1

suse advisories SUSE-SU-2026:23514-1SUSE-SU-2026:23063-1SUSE-SU-2026:2619-1SUSE-SU-2026:20030-1SUSE-SU-2026:20073-1SUSE-SU-2025:4533-1

  • libpng16 openSUSE Leap 16.0 1.6.44-160000.3.1
  • libpng16 openSUSE Tumbleweed 1.6.51-1.1

opensuse advisories openSUSE-SU-2026:20017-1openSUSE-SU-2025:15781-1

  • java-1.8.0-openjdk AlmaLinux 8 1:1.8.0.482.b08-1.el8
  • java-1.8.0-openjdk AlmaLinux 9 1:1.8.0.482.b08-1.el9.alma.1
  • java-1.8.0-openjdk-src AlmaLinux 8 1:1.8.0.482.b08-1.el8
  • java-1.8.0-openjdk-src AlmaLinux 9 1:1.8.0.482.b08-1.el9.alma.1
  • java-1.8.0-openjdk-demo AlmaLinux 8 1:1.8.0.482.b08-1.el8
  • java-1.8.0-openjdk-demo AlmaLinux 9 1:1.8.0.482.b08-1.el9.alma.1
  • java-1.8.0-openjdk-javadoc AlmaLinux 8 1:1.8.0.482.b08-1.el8
  • java-1.8.0-openjdk-javadoc AlmaLinux 9 1:1.8.0.482.b08-1.el9.alma.1

almalinux advisories ALSA-2026:0932ALSA-2026:0933ALSA-2026:0927ALSA-2026:0928ALSA-2026:0237ALSA-2026:0238

  • java-25-openjdk Rocky Linux 9 1:25.0.2.0.10-1.el9
  • java-1.8.0-openjdk Rocky Linux 8 1:1.8.0.482.b08-1.el8
  • java-17-openjdk Rocky Linux 8 1:17.0.18.0.8-1.el8
  • java-21-openjdk Rocky Linux 8 1:21.0.10.0.7-1.el8
  • libpng Rocky Linux 10 2:1.6.40-8.el10_1.1
  • libpng Rocky Linux 9 2:1.6.37-12.el9_7.1
  • libpng Rocky Linux 8 2:1.6.34-9.el8_10
  • mingw-libpng Rocky Linux 8 1.6.34-1.el8_10

rocky linux advisories RLSA-2026:0933RLSA-2026:0932RLSA-2026:0927RLSA-2026:0928RLSA-2026:0237RLSA-2026:0238

  • libpng Alpine 3.21, Alpine 3.20 1.6.53-r0
  • libpng Alpine 3.24, Alpine 3.23, Alpine 3.22 1.6.51-r0

alpine advisories ALPINE-CVE-2025-64720

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libpng CBL-Mariner 2.0, Azure Linux 3.0 1.6.51-1

azure linux advisories AZL-70928AZL-70972

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2025-64720 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-64720 updated cvss 7.1

libpng: LIBPNG buffer overflow

  • Red Hat build of OpenJDK 11 ELS java-21-openjdk-portable Red Hat build of OpenJDK 17 java-21-openjdk-portable Red Hat build of OpenJDK 21 java-21-openjdk-portable-rhel7
    affected: workaround, no fix available
  • Red Hat Enterprise Linux 6 libpng
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 7 java-11-openjdk, java-11-openjdk-src, java-11-openjdk-demo, java-11-openjdk-jmods, java-11-openjdk-javadoc, java-11-openjdk-headless, +2 more Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8
    affected: workaround, no fix available
  • Red Hat OPENJDK ELS 11.0.30
    fixed: vendor fix RHSA-2026:0848
  • Red Hat Build of OpenJDK 8u482
    fixed: vendor fix RHSA-2026:0895
  • Red Hat Build of OpenJDK 17.0.18
    fixed: vendor fix RHSA-2026:0897
  • Red Hat Build of OpenJDK 21.0.10
    fixed: vendor fix RHSA-2026:0899
  • Red Hat Build of OpenJDK 25.0.2
    fixed: vendor fix RHSA-2026:0901
show 15 more
  • Red Hat CodeReady Linux Builder EUS (v.9.4) java-17-openjdk-fastdebug 17.0.18.0.8-1.el9, java-17-openjdk-slowdebug 17.0.18.0.8-1.el9, java-21-openjdk-fastdebug 21.0.10.0.7-1.el9, java-21-openjdk-slowdebug 21.0.10.0.7-1.el9, java-17-openjdk-src-fastdebug 17.0.18.0.8-1.el9, java-17-openjdk-src-slowdebug 17.0.18.0.8-1.el9, +32 more Red Hat CodeReady Linux Builder EUS (v.9.6) java-17-openjdk-fastdebug 17.0.18.0.8-1.el9, java-17-openjdk-slowdebug 17.0.18.0.8-1.el9, java-21-openjdk-fastdebug 21.0.10.0.7-1.el9, java-21-openjdk-slowdebug 21.0.10.0.7-1.el9, java-17-openjdk-src-fastdebug 17.0.18.0.8-1.el9, java-17-openjdk-src-slowdebug 17.0.18.0.8-1.el9, +32 more
    fixed: vendor fix RHSA-2026:0928
  • Red Hat Discovery 2 discovery 1767904573
    fixed: vendor fix RHSA-2026:0414
  • Red Hat Enterprise Linux AppStream (v. 8) java-17-openjdk 17.0.18.0.8-1.el8, java-21-openjdk 21.0.10.0.7-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-21-openjdk-src 21.0.10.0.7-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, +17 more Red Hat Enterprise Linux AppStream (v. 9) libpng 1.6.37-12.el9_7.1, java-17-openjdk 17.0.18.0.8-1.el9, java-21-openjdk 21.0.10.0.7-1.el9, java-25-openjdk 25.0.2.0.10-1.el9, java-17-openjdk-src 17.0.18.0.8-1.el9, java-21-openjdk-src 21.0.10.0.7-1.el9, +26 more Red Hat Enterprise Linux AppStream (v. 10) libpng 1.6.40-8.el10_1.1, java-21-openjdk 21.0.10.0.7-1.el10, java-25-openjdk 25.0.2.0.10-1.el10, java-21-openjdk-src 21.0.10.0.7-1.el10, java-25-openjdk-src 25.0.2.0.10-1.el10, java-21-openjdk-demo 21.0.10.0.7-1.el10, +12 more
    fixed: vendor fix RHSA-2026:0928
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-1.8.0-openjdk-src 1.8.0.482.b08-1.el8, java-1.8.0-openjdk-demo 1.8.0.482.b08-1.el8, java-1.8.0-openjdk-javadoc 1.8.0.482.b08-1.el8, java-1.8.0-openjdk-headless 1.8.0.482.b08-1.el8, java-1.8.0-openjdk-javadoc-zip 1.8.0.482.b08-1.el8, +1 more Red Hat Enterprise Linux AppStream AUS (v.8.4) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more Red Hat Enterprise Linux AppStream AUS (v.8.6) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more Red Hat Enterprise Linux AppStream E4S (v.8.6) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more Red Hat Enterprise Linux AppStream E4S (v.8.8) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more Red Hat Enterprise Linux AppStream E4S (v.9.0) libpng 1.6.37-12.el9_0.1, java-17-openjdk 17.0.18.0.8-1.el9, java-17-openjdk-src 17.0.18.0.8-1.el9, java-1.8.0-openjdk 1.8.0.482.b08-1.el9, java-17-openjdk-demo 17.0.18.0.8-1.el9, java-17-openjdk-jmods 17.0.18.0.8-1.el9, +9 more
    +1 more products
    Red Hat Enterprise Linux AppStream E4S (v.9.2) libpng 1.6.37-12.el9_2.1, java-17-openjdk 17.0.18.0.8-1.el9, java-17-openjdk-src 17.0.18.0.8-1.el9, java-1.8.0-openjdk 1.8.0.482.b08-1.el9, java-17-openjdk-demo 17.0.18.0.8-1.el9, java-17-openjdk-jmods 17.0.18.0.8-1.el9, +9 more
    fixed: vendor fix RHSA-2026:0932
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) libpng 1.6.40-8.el10_0.1, java-21-openjdk 21.0.10.0.7-1.el10, java-21-openjdk-src 21.0.10.0.7-1.el10, java-21-openjdk-demo 21.0.10.0.7-1.el10, java-21-openjdk-jmods 21.0.10.0.7-1.el10, java-21-openjdk-javadoc 21.0.10.0.7-1.el10, +3 more Red Hat Enterprise Linux AppStream EUS (v.9.4) libpng 1.6.37-12.el9_4.1, java-17-openjdk 17.0.18.0.8-1.el9, java-21-openjdk 21.0.10.0.7-1.el9, java-17-openjdk-src 17.0.18.0.8-1.el9, java-21-openjdk-src 21.0.10.0.7-1.el9, java-1.8.0-openjdk 1.8.0.482.b08-1.el9, +17 more Red Hat Enterprise Linux AppStream EUS (v.9.6) libpng 1.6.37-12.el9_6.1, java-17-openjdk 17.0.18.0.8-1.el9, java-21-openjdk 21.0.10.0.7-1.el9, java-17-openjdk-src 17.0.18.0.8-1.el9, java-21-openjdk-src 21.0.10.0.7-1.el9, java-1.8.0-openjdk 1.8.0.482.b08-1.el9, +17 more
    fixed: vendor fix RHSA-2026:0928
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +23 more Red Hat Enterprise Linux AppStream TUS (v.8.6) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more Red Hat Enterprise Linux AppStream TUS (v.8.8) java-17-openjdk 17.0.18.0.8-1.el8, java-17-openjdk-src 17.0.18.0.8-1.el8, java-1.8.0-openjdk 1.8.0.482.b08-1.el8, java-17-openjdk-demo 17.0.18.0.8-1.el8, java-17-openjdk-jmods 17.0.18.0.8-1.el8, java-17-openjdk-javadoc 17.0.18.0.8-1.el8, +9 more
    fixed: vendor fix RHSA-2026:0932
  • Red Hat Enterprise Linux BaseOS (v. 8) libpng 1.6.34-9.el8_10
    fixed: vendor fix RHSA-2026:0241
  • Red Hat Enterprise Linux BaseOS (v. 9) libpng 1.6.37-12.el9_7.1
    fixed: vendor fix RHSA-2026:0238
  • Red Hat Enterprise Linux BaseOS (v. 10) libpng 1.6.40-8.el10_1.1
    fixed: vendor fix RHSA-2026:0237
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) libpng 1.6.34-8.el8_2.1
    fixed: vendor fix RHSA-2026:0323
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) libpng 1.6.34-8.el8_4.1
    fixed: vendor fix RHSA-2026:0321
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) libpng 1.6.34-8.el8_6.1 Red Hat Enterprise Linux BaseOS E4S (v.8.6) libpng 1.6.34-8.el8_6.1
    fixed: vendor fix RHSA-2026:0322
  • Red Hat Enterprise Linux BaseOS E4S (v.8.8) libpng 1.6.34-8.el8_8.1
    fixed: vendor fix RHSA-2026:0313
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) libpng 1.6.37-12.el9_0.1
    fixed: vendor fix RHSA-2026:0234
  • Red Hat Enterprise Linux BaseOS E4S (v.9.2) libpng 1.6.37-12.el9_2.1
    fixed: vendor fix RHSA-2026:0216

16 more fixed, 6 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
11mo ago

Exploit prediction

0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/pnggroup/libpng/issues/686 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
OSV 3.1 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia libpng_jll
<1.6.51+0
1.6.51+0

Affected products

  • pnggroup libpng

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.