Read the docs
TI-2025-41022 Aliases CVE-2025-66628GHSA-6hjr-v6g4-3fm8

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

Priority LOW 39CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-125 and the CVSS impact.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0051 43rd percentileScored 2026-11-07
Fix Partial ImageMagick (ImageMagick): 7.1.2-10Magick.NET-Q16-AnyCPU (NuGet): 14.10.0+5 more productsRed Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ImageMagickImageMagickbefore 7.1.2-107.1.2-10Patch availableCNA
—Magick.NET-Q16-AnyCPU (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
—Magick.NET-Q16-HDRI-AnyCPU (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
—Magick.NET-Q16-HDRI-x86 (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
—Magick.NET-Q16-x86 (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
—Magick.NET-Q8-AnyCPU (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
—Magick.NET-Q8-x86 (NuGet)before 14.10.014.10.0Patch availableGHSA-6hjr-v6g4-3fm8
  • ImageMagick VendorImageMagick Affected before 7.1.2-10 Fixed in 7.1.2-10 Patch available CNA
  • Magick.NET-Q16-AnyCPU (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8
  • Magick.NET-Q16-HDRI-AnyCPU (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8
  • Magick.NET-Q16-HDRI-x86 (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8
  • Magick.NET-Q16-x86 (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8
  • Magick.NET-Q8-AnyCPU (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8
  • Magick.NET-Q8-x86 (NuGet) Vendor— Affected before 14.10.0 Fixed in 14.10.0 Patch available GHSA-6hjr-v6g4-3fm8

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*before 7.1.2-10VulnerableImageMagick
  • cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* Versions before 7.1.2-10 Vulnerable ·ImageMagick

Remediation

  • Fix · CNA ImageMagick (ImageMagick) Fixed in 7.1.2-10
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q16-AnyCPU (NuGet) Fixed in 14.10.0 Advisory →
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q16-HDRI-AnyCPU (NuGet) Fixed in 14.10.0 Advisory →
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q16-HDRI-x86 (NuGet) Fixed in 14.10.0 Advisory →
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q16-x86 (NuGet) Fixed in 14.10.0 Advisory →
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q8-AnyCPU (NuGet) Fixed in 14.10.0 Advisory →
  • Fix · GHSA-6hjr-v6g4-3fm8 Magick.NET-Q8-x86 (NuGet) Fixed in 14.10.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-66628
  2. 2026-10-03 Alias added: GHSA-6hjr-v6g4-3fm8

References

  • TI-2016-03144 The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT… KEVCVSS 3.1HIGH 8.4
  • TI-2023-16996 Improper input validation in ImageMagick CVSS 3.1CRITICAL 9.8
  • TI-2016-03148 The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1… KEVCVSS 3.1MEDIUM 5.5
  • TI-2016-03145 The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote… KEVCVSS 3.1MEDIUM 5.5
  • TI-2025-35690 ImageMagick BlobStream Forward-Seek Under-Allocation CVSS 3.1CRITICAL 9.8
  • TI-2025-33094 ImageMagick has Stack Buffer Overflow in image.c CVSS 3.1CRITICAL 9.8
See all 888 →

Sources