cve.bz

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

6.1 mediumEPSS 0.1%Fix available

Medium (6.1) in libpng libpng. EPSS 0.1% 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, a heap buffer over-read vulnerability exists in libpng's png_write_image_8bit function when processing 8-bit images through the simplified write API with convert_to_8bit enabled. The vulnerability affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. A conditional guard incorrectly allows 8-bit input to enter code expecting 16-bit input, causing reads up to 2 bytes beyond allocated buffer boundaries. 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.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th 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-64506 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-64506?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-64506?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-64506 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-64506 DSA-6076-1
Debian13libpng1.61.6.48-1+deb13u1DEBIAN-CVE-2025-64506 DSA-6076-1
Debian14libpng1.61.6.51-1DEBIAN-CVE-2025-64506
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.1UBUNTU-CVE-2025-64506
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.1UBUNTU-CVE-2025-64506
Ubuntu25.10libpng1.61.6.50-1ubuntu0.1UBUNTU-CVE-2025-64506
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm2UBUNTU-CVE-2025-64506
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm1UBUNTU-CVE-2025-64506
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm1UBUNTU-CVE-2025-64506
Red Hathummingbird:1libpng, libpng-devel, libpng-tools and 1 more0:1.6.56-1.hum1RHSA-2026:6732
Red Hathummingbird:1libpng, libpng-devel, libpng-tools and 1 more0:1.6.58-2.1.hum1RHSA-2026:80330
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 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
Alpinev3.20, v3.21libpng1.6.53-r0ALPINE-CVE-2025-64506
Alpinev3.22, v3.23, v3.24libpng1.6.51-r0ALPINE-CVE-2025-64506
Azure Linux2fltkno fix listedAZL-70897
Azure Linux2gdalno fix listedAZL-70903
Azure Linux2libpng1.6.51-1AZL-70975
Azure Linux2openjpeg2no fix listedAZL-70915
Azure Linux3fltkno fix listedAZL-70841
Azure Linux3gdalno fix listedAZL-70856
Azure Linux3libpng1.6.51-1AZL-70931
Azure Linux3openjpeg2no fix listedAZL-70871
Azure Linux3optipngno fix listedAZL-70886
Alpaquita23libpng1.6.44-r1BELL-CVE-2025-64506
Alpaquita25libpng1.6.51-r0BELL-CVE-2025-64506
Alpaquitastreamlibpng1.6.51-r1BELL-CVE-2025-64506
BellSoft Hardened Containers23libpng1.6.44-r1BELL-CVE-2025-64506
BellSoft Hardened Containers25libpng1.6.51-r0BELL-CVE-2025-64506
BellSoft Hardened Containersstreamlibpng1.6.51-r1BELL-CVE-2025-64506

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. A heap buffer over-read in libpng's `png_write_image_8bit` function can occur when processing specially crafted 8-bit PNG images. Exploitation requires user interaction, such as opening a malicious PNG file, and could lead to an application level denial of service 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
Red Hat Hardened Imageslibpng-main-1.6.56-1.hum1Fixed 2026-04-07RHSA-2026:6732
Red Hat Hardened Imageslibpng-main-1.6.58-2.1.hum1Fixed 2026-10-11RHSA-2026:80330
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
17 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-64506.

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