Logo
vulnerabilityCVE-2025-66628
Name
CVE-2025-66628
Source
NVD ( link)Debian ( link)
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., 65535), wrapping around to a small value. This results in a small heap allocation via AcquireQuantumMemory and later operations relying on the dimensions can trigger an out of bounds read. This issue is fixed in version 7.1.2-10.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
imagemagick
Patched

Vulnerability Ratings#


7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
7.1.2-23
Not Affected
buildroot
master
7.1.2-23
Not Affected
openwrt
master
7.1.2.21-r1
Not Affected
openwrt
openwrt-25.12
7.1.2.1-r1
Not Affected
yocto
kirkstone
7.0.10-62
Exploitable
yocto
master
7.1.2-25
Not Affected

Resolved with patches#


imagemagick (yocto:scarthgap)

#
Title
Author
Resolve
1
Added extra check to avoid an overflow on 32-bit machines
Dirk Lemstra <dirk@lemstra.org>
CVE-2025-66628