CVE-2025-64720
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-64720 is an out-of-bounds read vulnerability affecting LIBPNG, a reference library for handling PNG (Portable Network Graphics) image files. The vulnerability exists in versions 1.6.0 through 1.6.50, specifically in the pngimagereadcomposite function when processing palette images with PNGFLAGOPTIMIZEALPHA enabled. The issue was discovered in November 2025 and has been patched in version 1.6.51 (Debian Security, GitHub Advisory).

Technical details

The vulnerability occurs when the palette compositing code in pnginitreadtransformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. The calculation produces component values up to 16,776,960 (0x1000800), where (component >> 15) == 512, leading to out-of-bounds array access in pngsRGBbase and pngsRGB_delta arrays which only have indices 0-511. The vulnerability has been assigned a CVSS score of 7.1 (High) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H (GitHub Advisory).

Impact

The vulnerability can lead to information disclosure through out-of-bounds read of adjacent memory (CWE-125) and potential denial of service through application crashes. The exploitation requires user interaction in the form of processing a malicious PNG file (OSS Security).

Mitigation and workarounds

The vulnerability has been patched in libpng version 1.6.51. The fix introduces conditional behavior in pnginitreadtransformations based on PNGFLAGOPTIMIZEALPHA, ensuring component ≤ (alpha × 257) and guaranteeing (component >> 15) ≤ 1, which keeps values within valid array bounds. No practical workaround is available, and users are advised to upgrade to version 1.6.51 or newer (GitHub PR, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65018HIGH7.1
  • Linux DebianLinux Debian
  • media-libs/libpng
NoYesNov 25, 2025
CVE-2025-64720HIGH7.1
  • Linux DebianLinux Debian
  • libpng1.6
NoYesNov 25, 2025
CVE-2025-59820MEDIUM6.7
  • Linux DebianLinux Debian
  • krita
NoYesNov 26, 2025
CVE-2025-64506MEDIUM6.1
  • Linux DebianLinux Debian
  • libpng
NoYesNov 25, 2025
CVE-2025-64505MEDIUM6.1
  • Linux DebianLinux Debian
  • libpng1.6
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management