Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2025-66628 EUVD-2025-202428GHSA-6hjr-v6g4-3fm8

ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)

Published Dec 10, 2025 · Updated Dec 11, 2025 · Assigned by GitHub_M

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

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

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Ubuntu 25.10 imagemagick No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References