Out-of-bounds Read Affecting ImageMagick/ImageMagick package, versions [,7.1.2-10)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.51% (42nd percentile)

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 Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-IMAGEMAGICKIMAGEMAGICK-14379260
  • published12 Dec 2025
  • disclosed10 Dec 2025
  • creditSumit Shah

Introduced: 10 Dec 2025

CVE-2025-66628  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 7.1.2-10 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the ReadTIMImage() function. An attacker can access sensitive memory contents by supplying a specially crafted TIM image file with large width and height values, causing an integer overflow and subsequent out-of-bounds read on 32-bit systems.

References

CVSS Base Scores

version 4.0
version 3.1