cve.bz

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

6.1 mediumEPSS 0.2%Fix available

Medium (6.1) in libpng libpng. EPSS 0.2% 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. Prior to version 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_do_quantize function when processing PNG files with malformed palette indices. The vulnerability occurs when palette_lookup array bounds are not validated against externally-supplied image data, allowing an attacker to craft a PNG file with out-of-range palette indices that trigger out-of-bounds memory access. This issue has been patched in version 1.6.51.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · 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-64505 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-64505?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-64505?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-64505 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:libpngbefore 1.6.51

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libpng1.61.6.37-3+deb11u1DLA-4396-1
Debian12libpng1.61.6.39-2+deb12u1DEBIAN-CVE-2025-64505 DSA-6076-1
Debian13libpng1.61.6.48-1+deb13u1DEBIAN-CVE-2025-64505 DSA-6076-1
Debian14libpng1.61.6.51-1DEBIAN-CVE-2025-64505
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.1UBUNTU-CVE-2025-64505
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.1UBUNTU-CVE-2025-64505
Ubuntu25.10libpng1.61.6.50-1ubuntu0.1UBUNTU-CVE-2025-64505
UbuntuPro:14.04:LTSlibpng1.2.50-1ubuntu2.14.04.3+esm1UBUNTU-CVE-2025-64505 USN-8081-1
UbuntuPro:16.04:LTSlibpng1.2.54-1ubuntu1.1+esm2UBUNTU-CVE-2025-64505 USN-8081-1
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm2UBUNTU-CVE-2025-64505
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm1UBUNTU-CVE-2025-64505
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm1UBUNTU-CVE-2025-64505
Red Hathummingbird:1libpng, libpng-devel, libpng-tools and 1 more0:1.6.56-1.hum1RHSA-2026:6732
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 SP7libpng121.2.57-150000.4.3.1SUSE-SU-2025:4432-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 SP5libpng121.2.50-20.6.1SUSE-SU-2025:4383-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libpng151.5.22-10.7.1SUSE-SU-2026:0898-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.6libpng121.2.57-150000.4.3.1SUSE-SU-2025:4432-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
openSUSETumbleweedlibpng121.2.59-4.1openSUSE-SU-2025:15797-1
openSUSETumbleweedlibpng161.6.51-1.1openSUSE-SU-2025:15781-1
Alpinev3.20, v3.21libpng1.6.53-r0ALPINE-CVE-2025-64505
Alpinev3.22, v3.23, v3.24libpng1.6.51-r0ALPINE-CVE-2025-64505
Azure Linux2fltkno fix listedAZL-70894
Azure Linux2libpng1.6.51-1AZL-70969
Azure Linux2libpng12no fix listedAZL-70906
Azure Linux2libpng15no fix listedAZL-70909
Azure Linux2openjpeg2no fix listedAZL-70918
Azure Linux3fltkno fix listedAZL-70844
Azure Linux3libpng1.6.51-1AZL-70763
Azure Linux3libpng12no fix listedAZL-70859
Azure Linux3libpng15no fix listedAZL-70862
Azure Linux3openjpeg2no fix listedAZL-70865
Azure Linux3optipngno fix listedAZL-70880
Alpaquita23libpng1.6.44-r1BELL-CVE-2025-64505
Alpaquita25libpng1.6.51-r0BELL-CVE-2025-64505
Alpaquitastreamlibpng1.6.51-r1BELL-CVE-2025-64505
BellSoft Hardened Containers23libpng1.6.44-r1BELL-CVE-2025-64505
BellSoft Hardened Containers25libpng1.6.51-r0BELL-CVE-2025-64505
BellSoft Hardened Containersstreamlibpng1.6.51-r1BELL-CVE-2025-64505

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; 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 Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat products. It affects applications that process specially crafted PNG files using the vulnerable `libpng` library. Exploitation requires user interaction, where a victim must open or process a malicious PNG image, leading to a heap buffer over-read. This could result in information disclosure or application crash.

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
Red Hat Hardened Imageslibpng-main-1.6.56-1.hum1Fixed 2026-04-07RHSA-2026:6732
Red Hat build of OpenJDK 11 ELSjava-11-openjdkFix deferred
Red Hat build of OpenJDK 11 ELSjava-11-openjdk-portableFix deferred
Red Hat build of OpenJDK 11 ELSjava-21-openjdk-portableFix deferred
Red Hat build of OpenJDK 17java-17-openjdk-portableFix deferred
Red Hat build of OpenJDK 17java-21-openjdk-portableFix deferred
Red Hat build of OpenJDK 1.8java-1.8.0-openjdk-portableFix deferred
Red Hat build of OpenJDK 21java-21-openjdk-portableFix deferred
Red Hat build of OpenJDK 21java-21-openjdk-portable-rhel7Fix deferred
Red Hat Enterprise Linux 10firefoxFix deferred
Red Hat Enterprise Linux 10java-21-openjdkFix deferred
Red Hat Enterprise Linux 10java-25-openjdkFix deferred
Red Hat Enterprise Linux 10libpngFix deferred
Red Hat Enterprise Linux 10thunderbirdFix deferred
Red Hat Enterprise Linux 6libpngFix deferred
Red Hat Enterprise Linux 7firefoxFix deferred
Red Hat Enterprise Linux 7libpngFix deferred
Red Hat Enterprise Linux 7libpng12Fix deferred
Red Hat Enterprise Linux 8firefoxFix deferred
Red Hat Enterprise Linux 8java-17-openjdkFix deferred
16 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-64505.

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