Out-of-bounds Read Affecting libpng package, versions [1.6.32,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-14103023
  • published24 Nov 2025
  • disclosed23 Nov 2025
  • creditweijinjinnihao

Introduced: 23 Nov 2025

NewCVE-2025-64506  (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_write_image_8bit function, which incorrectly processes 8-bit image data as 16-bit when the simplified write API is used with convert_to_8bit enabled. An attacker can craft a malicious 8-bit PNG image, causing it to over-read the heap buffer.

References

CVSS Base Scores

version 4.0
version 3.1