# CVE-2025-66628: imagemagick: ImageMagick is a software suite to create, edit, compose, or convert bitmap images

CVE-2025-66628 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2025-66628, released December 10, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-66628
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0051
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 10, 2025

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ImageMagick opensuse-leap 15.6 | 7.1.1.21-150600.3.32.1 | [SUSE-SU-2026:0011-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0011-1.md) | Jan 5, 2026 |
| Linux | ImageMagick opensuse-leap 16.0 | 7.1.2.0-160000.5.1 | [OPENSUSE-SU-2026:20118-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20118-1.md) | Jan 28, 2026 |
| Linux | ImageMagick sles 15.6 | 7.1.0.9-150400.6.58.1 | [SUSE-SU-2026:0013-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0013-1.md) | Jan 5, 2026 |
| Linux | ImageMagick sles 15.7 | 7.1.0.9-150400.6.58.1 | [SUSE-SU-2026:0013-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0013-1.md) | Jan 5, 2026 |
| Linux | ImageMagick sles 16.0 | 7.1.2.0-160000.5.1 | [SUSE-SU-2026:20183-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20183-1.md) | Jan 28, 2026 |
| Linux | imagemagick Debian 12.15 (bookworm) | 8:6.9.11.60+dfsg-1.6+deb12u5 | [DEBIAN-CVE-2025-66628](https://patchblox.com/security/data/fix/linux/debian-cve-2025-66628.md) | Dec 10, 2025 |
| Linux | imagemagick Debian 13.5 (trixie) | 8:7.1.1.43+dfsg1-1+deb13u4 | [DEBIAN-CVE-2025-66628](https://patchblox.com/security/data/fix/linux/debian-cve-2025-66628.md) | Dec 10, 2025 |
| Linux | imagemagick Debian 14 | 8:7.1.2.12+dfsg1-1 | [DEBIAN-CVE-2025-66628](https://patchblox.com/security/data/fix/linux/debian-cve-2025-66628.md) | Dec 10, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
