CVE-2025-66628Out-of-bounds Read in Imagemagick

CWE-125Out-of-bounds Read7 documents6 sources
Severity
7.5HIGHNVD
EPSS
0.1%
top 81.75%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 10

Description

ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit systems (or where size_t is 32-bit), this calculation can overflow if width and height are large (e.g

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.60+dfsg-1.6+deb12u5 (bookworm)
NVDimagemagick/imagemagick< 7.1.2-10
Debianimagemagick/imagemagick< 8:6.9.11.60+dfsg-1.3+deb11u8+3

Patches

🔴Vulnerability Details

3
GHSA
ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds read (32-bit only)2025-12-10
OSV
CVE-2025-66628: ImageMagick is a software suite to create, edit, compose, or convert bitmap images2025-12-10
OSV
ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds read (32-bit only)2025-12-10

📋Vendor Advisories

2
Red Hat
ImageMagick: ImageMagick Integer Overflow leading to out of bounds read (32-bit only)2025-12-10
Debian
CVE-2025-66628: imagemagick - ImageMagick is a software suite to create, edit, compose, or convert bitmap imag...2025

🕵️Threat Intelligence

1
Wiz
CVE-2025-66628 Impact, Exploitability, and Mitigation Steps | Wiz