Vulnerability
CVE-2025-66628
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.
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2025-66628
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…
- ALPINE-EDGE-CVE-2025-66628
- CGA-c4w3-4mgg-wqr6
- CGA-f46j-p4rw-qmgp
- CGA-gr9f-54qj-vqc3
- CGA-h922-hgm2-7x7f
- CGA-j4wh-vphr-5g67
- CGA-p638-wv85-hqcr
- CGA-w74v-9hfq-w4gm
- CGA-x7h2-x87c-fv6r
-
DEBIAN-CVE-2025-66628
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…
-
DLA-4429-1
imagemagick - security update
-
GHSA-6hjr-v6g4-3fm8
ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds read (32-bit only)
-
RHVEX-CVE-2025-66628
ImageMagick: ImageMagick Integer Overflow leading to out of bounds read (32-bit only)
-
SUSE-SU-2025:4427-1
Security update for ImageMagick
-
SUSE-SU-2025:4428-1
Security update for ImageMagick
-
SUSE-SU-2025:4429-1
Security update for ImageMagick
-
SUSE-SU-2026:0011-1
Security update for ImageMagick
-
SUSE-SU-2026:0013-1
Security update for ImageMagick
-
SUSE-SU-2026:20183-1
Security update for ImageMagick
-
SUSEVEX-CVE-2025-66628
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…
-
UBUNTU-CVE-2025-66628
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…
-
openSUSE-SU-2025:15829-1
ImageMagick-7.1.2.10-2.1 on GA media
-
openSUSE-SU-2026:20118-1
Security update for ImageMagick