CVE-2025-66628 json
ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)
published 2025-12-10 10 mo ago modified 2026-09-25 44 d ago also EUVD-2025-202428 , GHSA-6hjr-v6g4-3fm8 , JLSEC-2026-929
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Magick.NET-Q16-AnyCPU 14.10.0
- nuget Magick.NET-Q16-HDRI-AnyCPU 14.10.0
- nuget Magick.NET-Q16-HDRI-x86 14.10.0
- nuget Magick.NET-Q16-x86 14.10.0
- nuget Magick.NET-Q8-AnyCPU 14.10.0
- nuget Magick.NET-Q8-x86 14.10.0
- julia ImageMagick_jll 7.1.2023+0
- imagemagick imagemagick 7.1.2-10
- imagemagick Debian 12 8:6.9.11.60+dfsg-1.6+deb12u5
- imagemagick Debian 13 8:7.1.1.43+dfsg1-1+deb13u4
- imagemagick Debian 14 8:7.1.2.12+dfsg1-1
debian advisories DEBIAN-CVE-2025-66628
- ImageMagick SLES for SAP applications 16.0, SLES 16.0 7.1.2.0-160000.5.1
- ImageMagick SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 7.1.0.9-150400.6.58.1
- ImageMagick SLES for SAP 15 SP6, SLES 15 SP6-LTSS, openSUSE Leap 15.6 7.1.1.21-150600.3.32.1
- ImageMagick SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 7.0.7.34-150200.10.68.1
- ImageMagick SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7 7.1.1.43-150700.3.27.1
- ImageMagick SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 6.8.8.1-71.218.1
suse advisories SUSE-SU-2026:20183-1SUSE-SU-2026:0013-1SUSE-SU-2026:0011-1SUSE-SU-2025:4429-1SUSE-SU-2025:4428-1SUSE-SU-2025:4427-1
- ImageMagick openSUSE Leap 16.0 7.1.2.0-160000.5.1
- ImageMagick openSUSE Tumbleweed 7.1.2.10-2.1
opensuse advisories openSUSE-SU-2026:20118-1openSUSE-SU-2025:15829-1
- imagemagick Alpine 3.24, Alpine 3.23, Alpine 3.22 7.1.2.12-r0
alpine advisories ALPINE-CVE-2025-66628
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-66628 updated cvss 7.5
ImageMagick: ImageMagick Integer Overflow leading to out of bounds read (32-bit only)
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: workaround, no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Magick.NET-Q16-AnyCPU | <14.10.0 |
14.10.0 |
| nuget | Magick.NET-Q16-HDRI-AnyCPU | <14.10.0 |
14.10.0 |
| nuget | Magick.NET-Q16-HDRI-x86 | <14.10.0 |
14.10.0 |
| nuget | Magick.NET-Q16-x86 | <14.10.0 |
14.10.0 |
| nuget | Magick.NET-Q8-AnyCPU | <14.10.0 |
14.10.0 |
| nuget | Magick.NET-Q8-x86 | <14.10.0 |
14.10.0 |
| julia | ImageMagick_jll | <7.1.2023+0 |
7.1.2023+0 |
Affected products
- ImageMagick ImageMagick
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
Sources
- CVE List CVE-2025-66628
- GitHub Advisory GHSA-6hjr-v6g4-3fm8
- NVD CVE-2025-66628
- OSV JLSEC-2026-929
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.