Out-of-bounds Read Affecting libpng package, versions [,1.6.51)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBPNG-14103021
  • published24 Nov 2025
  • disclosed23 Nov 2025
  • creditSamsung-PENTEST

Introduced: 23 Nov 2025

NewCVE-2025-64505  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libpng to version 1.6.51 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read via the png_do_quantize function, which lacks validation of external image data. An attacker can create a PNG file containing out-of-range palette indices, leading to out-of-bounds memory access.

CVSS Base Scores

version 4.0
version 3.1