Skip to main content
Public proof of conceptFix available

CVE-2025-64720

A public proof of concept exists; no exploitation attested.

  • Published2025-11-25
  • Fixed in1.6.51
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-11-2500:15CVE publishedNVD

Versions per branch

NVD
Libpng
BranchAffectedFixed in
1.6≥ 1.6.0, < 1.6.511.6.51

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • pnggroup libpng
    Affected
    • = >= 1.6.0, < 1.6.51no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-11-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • fltkAzure Linux:3all versions · no fixed version listedand 2 other packages
  • fltkAzure Linux:2all versions · no fixed version listedand 1 other package
  • java-1.8.0-openjdkTuxCare:AlmaLinux:9.6all versions · fixed in 1:1.8.0.482.b08-1.el9.alma.1.tuxcare.els1and 16 other packages
  • java-1.8.0-openjdkRocky Linux:8all versions · fixed in 1:1.8.0.482.b08-1.el8
  • java-1.8.0-openjdkRed Hat:enterprise_linux:9::appstreamall versions · fixed in 1:1.8.0.482.b08-1.el9and 11 other packages
  • java-1.8.0-openjdkRed Hat:enterprise_linux:8::appstreamall versions · fixed in 1:1.8.0.482.b08-1.el8and 12 other packages
  • java-1.8.0-openjdkMageia:9all versions · fixed in 1.8.0.482.b08-1.mga9
  • java-1.8.0-openjdkAlmaLinux:9all versions · fixed in 1:1.8.0.482.b08-1.el9.alma.1and 16 other packages

143 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-64720 Red Hat Product Security3,667 products fixed · 26 known affected

    libpng: LIBPNG buffer overflow

    java-21-openjdk-portable.src as a component of Red Hat build of OpenJDK 11 ELS · java-21-openjdk-portable.src as a component of Red Hat build of OpenJDK 17 · java-21-openjdk-portable-rhel7.src as a component of Red Hat build of OpenJDK 21 · +23 more

  • RHSA-2026:80330 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

  • RHSA-2026:6732 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

  • RHSA-2026:0932 Red Hat Product Security780 products fixed

    Red Hat Security Advisory: java-1.8.0-openjdk security update

  • RHSA-2026:0933 Red Hat Product Security330 products fixed

    Red Hat Security Advisory: java-25-openjdk security update

  • RHSA-2026:0901 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenJDK 25.0.2 Security Update for Portable Linux Builds

23 more advisories

Full record on NVD

Fix

  1. Update Libpng to 1.6.51
  2. Vendor fix Red Hat Product Security RHSA-2026:80330 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
  3. Vendor fix Red Hat Product Security RHSA-2026:0932 · 780 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2026:0414 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
  5. Vendor fix Red Hat Product Security RHSA-2026:0322 · 57 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  6. Workaround from the vendor Red Hat Product Security RHSA-2026:80330 · 13 productsMitigation 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.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Published
2025-11-25
Last modified
2026-10-18
NVD status
Analyzed
GitHub advisory
GHSA-hfc7-ph9c-wcww

Frequently asked questions

What is CVE-2025-64720?

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.

Is CVE-2025-64720 actively exploited?

A proof-of-concept exploit exists for CVE-2025-64720, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-64720?

CVE-2025-64720 has a CVSS v3 base score of 7.1 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H.

Running libpng? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record