CVE-2025-66628: imagemagick Out-of-bounds Read
Vulnerability summary
CVE-2025-66628 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in imagemagick. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 42.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 7 · Related 7Timeline
- 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
6 scores · 6 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
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
0.00 pp
From 0.51% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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
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)
7 vendors · 16 products
References
11 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1cX Refsource MISCREPORTFIXWEBPatch