cve.bz

CVE-2025-64720 libpng libpng: Out-of-bounds Read

7.1 highExploit referenceEPSS 0.4%Fix available

High (7.1) in libpng libpng. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-11-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-64720 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-64720?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-64720?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-64720 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libpng:libpngfrom 1.6.0 before 1.6.51

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libpng1.61.6.37-3+deb11u1DLA-4396-1
Debian12libpng1.61.6.39-2+deb12u1DEBIAN-CVE-2025-64720 DSA-6076-1
Debian13libpng1.61.6.48-1+deb13u1DEBIAN-CVE-2025-64720 DSA-6076-1
Debian14libpng1.61.6.51-1DEBIAN-CVE-2025-64720
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.1UBUNTU-CVE-2025-64720
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.1UBUNTU-CVE-2025-64720
Ubuntu25.10libpng1.61.6.50-1ubuntu0.1UBUNTU-CVE-2025-64720
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm2UBUNTU-CVE-2025-64720
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm1UBUNTU-CVE-2025-64720
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm1UBUNTU-CVE-2025-64720
Red Hatenterprise_linux:8::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.10.0.7-1.el8RHSA-2026:0928
Red Hatenterprise_linux:8::appstream, rhel_aus:8.4::appstream, rhel_aus:8.6::appstream and 3 morejava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 10 more1:1.8.0.482.b08-1.el8RHSA-2026:0932
Red Hatenterprise_linux:8::appstream, rhel_aus:8.6::appstream, rhel_e4s:8.6::appstream and 1 morejava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.18.0.8-1.el8RHSA-2026:0927
Red Hatenterprise_linux:8::baseoslibpng, libpng-devel, libpng-debuginfo and 3 more2:1.6.34-9.el8_10RHSA-2026:0241
Red Hatenterprise_linux:8::crbjava-1.8.0-openjdk-debuginfo, java-1.8.0-openjdk-fastdebug, java-1.8.0-openjdk-slowdebug and 22 more1:1.8.0.482.b08-1.el8RHSA-2026:0932
Red Hatenterprise_linux:8::crbjava-17-openjdk-debuginfo, java-17-openjdk-fastdebug, java-17-openjdk-slowdebug and 21 more1:17.0.18.0.8-1.el8RHSA-2026:0927
Red Hatenterprise_linux:8::crbjava-21-openjdk-debuginfo, java-21-openjdk-fastdebug, java-21-openjdk-slowdebug and 21 more1:21.0.10.0.7-1.el8RHSA-2026:0928
Red Hatenterprise_linux:8::crbmingw-libpng, mingw32-libpng, mingw64-libpng and 4 more0:1.6.34-1.el8_10RHSA-2026:0125
Red Hatenterprise_linux:9::appstreamjava-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 12 more1:25.0.2.0.10-1.el9RHSA-2026:0933
Red Hatenterprise_linux:9::appstreamlibpng, libpng-devel, libpng-debuginfo and 3 more2:1.6.37-12.el9_7.1RHSA-2026:0238
Red Hatenterprise_linux:9::appstream, rhel_eus:9.4::appstream, rhel_eus:9.6::appstreamjava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 9 more1:1.8.0.482.b08-1.el9RHSA-2026:0932
Red Hatenterprise_linux:9::appstream, rhel_eus:9.4::appstream, rhel_eus:9.6::appstreamjava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.18.0.8-1.el9RHSA-2026:0927
33 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 15 morelibpng161.6.34-150000.3.12.1SUSE-SU-2025:4436-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7libpng161.6.40-150600.3.3.1SUSE-SU-2025:4494-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libpng161.6.44-160000.3.1SUSE-SU-2026:20030-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libpng151.5.30-10.13.1SUSE-SU-2026:2619-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libpng161.6.8-15.9.1SUSE-SU-2025:4533-1
SUSELinux Micro 6.0libpng161.6.43-2.1SUSE-SU-2025:21217-1
SUSELinux Micro 6.0libpng161.6.58-1.1SUSE-SU-2026:23063-1
SUSELinux Micro 6.1libpng161.6.43-slfo.1.1_2.1SUSE-SU-2025:21220-1
SUSELinux Micro 6.1libpng161.6.58-slfo.1.1_1.1SUSE-SU-2026:23514-1
SUSELinux Micro 6.2libpng161.6.44-160000.3.1SUSE-SU-2026:20073-1
openSUSELeap 15.6libpng161.6.40-150600.3.3.1SUSE-SU-2025:4494-1
openSUSELeap 16.0libpng161.6.44-160000.3.1openSUSE-SU-2026:20017-1
openSUSETumbleweedlibpng161.6.51-1.1openSUSE-SU-2025:15781-1
AlmaLinux8java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 13 more1:1.8.0.482.b08-1.el8ALSA-2026:0932
AlmaLinux8java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.18.0.8-1.el8ALSA-2026:0927
AlmaLinux8java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el8ALSA-2026:0928
AlmaLinux8libpng, libpng-devel2:1.6.34-9.el8_10ALSA-2026:0241
AlmaLinux8mingw32-libpng, mingw64-libpng, mingw32-libpng-static and 1 more1.6.34-1.el8_10ALSA-2026:0125
AlmaLinux9java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 14 more1:1.8.0.482.b08-1.el9.alma.1ALSA-2026:0932
AlmaLinux9java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.18.0.8-1.el9.alma.1ALSA-2026:0927
AlmaLinux9java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el9.alma.1ALSA-2026:0928
AlmaLinux9java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.2.0.10-1.el9.alma.1ALSA-2026:0933
AlmaLinux9libpng, libpng-devel2:1.6.37-12.el9_7.1ALSA-2026:0238
AlmaLinux10java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el10.alma.1ALSA-2026:0928
AlmaLinux10java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.2.0.10-1.el10ALSA-2026:0933
1 more for AlmaLinux in the JSON.
Rocky Linux8java-1.8.0-openjdk1:1.8.0.482.b08-1.el8RLSA-2026:0932
Rocky Linux8java-17-openjdk1:17.0.18.0.8-1.el8RLSA-2026:0927
Rocky Linux8java-21-openjdk1:21.0.10.0.7-1.el8RLSA-2026:0928
Rocky Linux8libpng2:1.6.34-9.el8_10RLSA-2026:0241
Rocky Linux8mingw-libpng0:1.6.34-1.el8_10RLSA-2026:0125
Rocky Linux9java-25-openjdk1:25.0.2.0.10-1.el9RLSA-2026:0933
Rocky Linux9libpng2:1.6.37-12.el9_7.1RLSA-2026:0238
Rocky Linux10libpng2:1.6.40-8.el10_1.1RLSA-2026:0237
Alpinev3.20, v3.21libpng1.6.53-r0ALPINE-CVE-2025-64720
Alpinev3.22, v3.23, v3.24libpng1.6.51-r0ALPINE-CVE-2025-64720
Azure Linux2fltkno fix listedAZL-70888
Azure Linux2libpng1.6.51-1AZL-70972
Azure Linux2openjpeg2no fix listedAZL-70921
Azure Linux3fltkno fix listedAZL-70847
Azure Linux3libpng1.6.51-1AZL-70928
Azure Linux3openjpeg2no fix listedAZL-70868
Azure Linux3optipngno fix listedAZL-70883
Alpaquita23libpng1.6.44-r1BELL-CVE-2025-64720
Alpaquita25libpng1.6.51-r0BELL-CVE-2025-64720
Alpaquitastreamlibpng1.6.51-r1BELL-CVE-2025-64720
BellSoft Hardened Containers23libpng1.6.44-r1BELL-CVE-2025-64720
BellSoft Hardened Containers25libpng1.6.51-r0BELL-CVE-2025-64720
BellSoft Hardened Containersstreamlibpng1.6.51-r1BELL-CVE-2025-64720

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products. An out-of-bounds read in libpng can occur when processing specially crafted palette images with `PNG_FLAG_OPTIMIZE_ALPHA` enabled. Successful exploitation requires a user to process a malicious PNG file, leading to potential application crash or information disclosure.

java-*-openjdk-headless packages do not contain libsplashscreen.so, hence are not affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OPENJDK ELS 11.0.30java-11-openjdk-portableFixed 2026-01-21RHSA-2026:0848
OPENJDK ELS 11.0.30Fixed 2026-01-21RHSA-2026:0849
Red Hat Build of OpenJDK 17.0.18java-17-openjdk-portableFixed 2026-01-26RHSA-2026:0897
Red Hat Build of OpenJDK 21.0.10java-21-openjdk-portableFixed 2026-01-26RHSA-2026:0899
Red Hat Build of OpenJDK 25.0.2java-25-openjdk-portableFixed 2026-01-26RHSA-2026:0901
Red Hat Build of OpenJDK 8u482java-1.8.0-openjdk-portableFixed 2026-01-26RHSA-2026:0895
Red Hat Enterprise Linux 10libpng-2:1.6.40-8.el10_1.1Fixed 2026-01-07RHSA-2026:0237
Red Hat Enterprise Linux 10java-21-openjdk-1:21.0.10.0.7-1.el10Fixed 2026-01-22RHSA-2026:0928
Red Hat Enterprise Linux 10java-25-openjdk-1:25.0.2.0.10-1.el10Fixed 2026-01-26RHSA-2026:0933
Red Hat Enterprise Linux 10.0 Extended Update Supportlibpng-2:1.6.40-8.el10_0.1Fixed 2026-01-07RHSA-2026:0212
Red Hat build of OpenJDK 11 ELSjava-21-openjdk-portableAffected
Red Hat build of OpenJDK 17java-21-openjdk-portableAffected
Red Hat build of OpenJDK 21java-21-openjdk-portable-rhel7Affected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 6libpngWill not fix
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7java-11-openjdkAffected
Red Hat Enterprise Linux 7libpng12Not affected
Red Hat Enterprise Linux 8firefoxNot affected
63 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-64720.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON