Skip to content
Fencer Vulns
medium 6.1

CVE-2025-64506 json

LIBPNG is vulnerable to a heap buffer over-read in `png_write_image_8bit` with grayscale+alpha or RGB/RGBA images

published 2025-11-24 11 mo ago modified 2026-10-18 21 d ago also EUVD-2025-199238 , JLSEC-2025-329

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.1%
EPSS 0.1% chance of exploitation in 30 days, percentile 4%
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, 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.

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-64506

  • 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-64506

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

red hat advisories RHSA-2026:80330RHSA-2026:6732

  • 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
  • libpng16 SLES LTSS Extended Security 12 SP5 1.6.8-15.9.1

suse advisories SUSE-SU-2026:23514-1SUSE-SU-2026:23063-1SUSE-SU-2026:20030-1SUSE-SU-2026:20073-1SUSE-SU-2025:4533-1SUSE-SU-2025:4494-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

  • 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-64506

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-70931AZL-70975

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

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-64506 updated cvss 6.1

libpng: LIBPNG heap buffer over-read

  • Red Hat build of OpenJDK 1.8 java-1.8.0-openjdk-portable Red Hat build of OpenJDK 11 ELS java-11-openjdk, java-11-openjdk-portable, java-21-openjdk-portable Red Hat build of OpenJDK 17 java-17-openjdk-portable, java-21-openjdk-portable Red Hat build of OpenJDK 21 java-21-openjdk-portable, java-21-openjdk-portable-rhel7 Red Hat Enterprise Linux 6 libpng Red Hat Enterprise Linux 7 libpng, firefox, libpng12
    +4 more products
    Red Hat Enterprise Linux 8 libpng, firefox, libpng12, libpng15, thunderbird, mingw-libpng, +65 more Red Hat Enterprise Linux 9 libpng, firefox, libpng15, firefox-x11, thunderbird, java-17-openjdk, +59 more Red Hat Enterprise Linux 10 libpng, firefox, thunderbird, java-21-openjdk, java-25-openjdk Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Hardened Images libpng 1.6.56-1.hum1, libpng 1.6.58-2.1.hum1, libpng-tools 1.6.56-1.hum1, libpng-tools 1.6.58-2.1.hum1
    fixed: vendor fix RHSA-2026:6732

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
none
Automatable
no
Technical impact
partial
Assessed
11 mo ago

Exploit prediction

0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
OSV 3.1 6.1 CVSS:3.1/AV:L/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 Vulns 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.