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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ImageMagick | ImageMagick | < 7.1.2-10 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | imagemagick | 8:7.1.2.12+dfsg1-1 | — |
| Debian 13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u4 | — |
| Debian 12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u5 | — |
| Debian 11 | imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u8 | DLA-4429-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | imagemagick | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 22.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 20.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 18.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 16.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 14.04 LTS | imagemagick | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1, SUSE-SU-2025:4427-1 |
| SLES 15 SP6 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1, SUSE-SU-2026:0011-1 |
| SLES 15 SP5 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLES 15 SP4 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLES 15 SP3 | ImageMagick | 7.0.7.34-150200.10.68.1 | SUSE-SU-2025:4428-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | ImageMagick | 6.8.8.1-71.218.1 | SUSE-SU-2025:4429-1 |
| SLES for SAP 16.0 | ImageMagick | 7.1.2.0-160000.5.1 | SUSE-SU-2026:20183-1 |
| SLES for SAP 15 SP6 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1, SUSE-SU-2026:0011-1 |
| SLES for SAP 15 SP5 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLES for SAP 15 SP4 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLES for SAP 15 SP3 | ImageMagick | 7.0.7.34-150200.10.68.1 | SUSE-SU-2025:4428-1 |
| SLES 16.0 | ImageMagick | 7.1.2.0-160000.5.1 | SUSE-SU-2026:20183-1 |
| SLE HPC 15 SP5 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLE HPC 15 SP4 | ImageMagick | 7.1.0.9-150400.6.58.1 | SUSE-SU-2026:0013-1 |
| SLE HPC 15 SP3 | ImageMagick | 7.0.7.34-150200.10.68.1 | SUSE-SU-2025:4428-1 |
| SUSE Enterprise Storage 7.1 | ImageMagick | 7.0.7.34-150200.10.68.1 | SUSE-SU-2025:4428-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ImageMagick | 7.1.2.10-2.1 | openSUSE-SU-2025:15829-1 |
| openSUSE Leap 16.0 | ImageMagick | 7.1.2.0-160000.5.1 | openSUSE-SU-2026:20118-1 |
| openSUSE Leap 15.6 | ImageMagick | 7.1.1.21-150600.3.32.1 | SUSE-SU-2026:0011-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | imagemagick | 7.1.2.12-r0 | — |
| Alpine v3.23 | imagemagick | 7.1.2.12-r0 | — |
| Alpine v3.22 | imagemagick | 7.1.2.12-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
Sumitshah00/CVE-2025-66628 ★ 1 · Dec 11, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | Magick.NET-Q16-AnyCPU | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
| NuGet | Magick.NET-Q16-HDRI-x86 | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
| NuGet | Magick.NET-Q16-x86 | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
| NuGet | Magick.NET-Q8-AnyCPU | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
| NuGet | Magick.NET-Q8-x86 | < 14.10.0 | 14.10.0 | GHSA-6hjr-v6g4-3fm8 |
Advisories 10
- openSUSE-SU-2026:20118-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15829-1 ImageMagick-7.1.2.10-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20183-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0011-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0013-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4427-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4428-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4429-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- WID-SEC-2025-2816 ImageMagick: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Feb 3, 2026
- DLA-4429-1 imagemagick - security update Debian Security (DSA / DLA) · Dec 31, 2025