CVE-2025-66628: ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)
Vulnerability summary
CVE-2025-66628 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in imagemagick. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 47.5% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 8Timeline
- 10-12-2025PublishedVulnerability first disclosed.
- 11-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · NugetEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.51% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
NuGet6 products
- Magick.NET-Q16-AnyCPU< 14.10.0
- Magick.NET-Q16-HDRI-AnyCPU< 14.10.0
- Magick.NET-Q16-HDRI-x86< 14.10.0
- Magick.NET-Q16-x86< 14.10.0
- Magick.NET-Q8-AnyCPU< 14.10.0
Chainguard4 products
- imagemagick-6All versions (No fix recorded)
- imagemagick-6-dev< 6.9.13.46-r1
- imagemagick-6-doc< 6.9.13.46-r1
- imagemagick-6-static< 6.9.13.46-r1
Suse2 products
- ImageMagick&distro=SUSE Linux Enterprise Server 12 SP5-LTSS< 6.8.8.1-71.218.1
- ImageMagick&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 6.8.8.1-71.218.1
Alpine1 product
- imagemagick< 7.1.2.12-r0
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u5 | < 8:7.1.1.43+dfsg1-1+deb13u4 | < 8:7.1.2.12+dfsg1-1
Imagemagick1 product
- imagemagick< 7.1.2-10
Opensuse1 product
- ImageMagick&distro=openSUSE Tumbleweed< 7.1.2.10-2.1
Ubuntu1 product
- imagemagickAll versions (No fix recorded) | < 8:6.7.7.10-6ubuntu3.13+esm29 | < 8:6.8.9.9-7ubuntu5.16+esm28 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm20 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm18 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm18 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm17
8 vendors · 17 products
References
13 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1cX Refsource MISCREPORTFIXWEBPatch