CVE-2025-66628
Reported by github_m · Published December 10, 2025
magick.net-q8-anycpu is fixed in 14.10.0 (NuGet)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| magick.net-q8-anycpu | NuGet | 14.10.0 |
| Magick.NET-Q16-x86 | NuGet | 14.10.0 |
| Magick.NET-Q16-AnyCPU | NuGet | 14.10.0 |
| Magick.NET-Q16-HDRI-AnyCPU | NuGet | 14.10.0 |
| Magick.NET-Q8-x86 | NuGet | 14.10.0 |
| Magick.NET-Q16-HDRI-x86 | NuGet | 14.10.0 |
| imagemagick-6 | Chainguard | 7.1.2.20-r0, 6.9.13.46-r1 |
| imagemagick | Alpine | 7.1.2.12-r0 |
| imagemagick | imagemagick | 7.1.2-10 |
| nextcloud | DHI | 7.1.2-10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ImageMagick | ImageMagick | < 7.1.2-10 |
| NuGet | magick.net-q8-anycpu | 0 |
| NuGet | Magick.NET-Q16-x86 | 0 |
| chainguard | imagemagick-6 | 0, 0 |
| alpine | imagemagick | 0 |
| ImageMagick | ImageMagick | 0 |
| NuGet | Magick.NET-Q16-HDRI-x86 | 0 |
| NuGet | magick.net-q16-hdri-anycpu | 0 |
| NuGet | Magick.NET-Q16-AnyCPU | 0 |
| NuGet | Magick.NET-Q8-x86 | 0 |
| NuGet | Magick.NET-Q8-AnyCPU | 0 |
| NuGet | magick.net-q16-anycpu | 0 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | 0 |
Timeline
- Dec 10, 2025 CVE Published
- Dec 11, 2025 EPSS Score (30 in total, the first dated here)
- Jan 6, 2026 PoC Published
- Mar 20, 2026 Security Advisory (2 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-66628
vulnetix vdb fixes CVE-2025-66628
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-66628/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8 x_refsource_CONFIRM
- https://github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1c x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-66628 advisory
- https://github.com/advisories/GHSA-6hjr-v6g4-3fm8 advisory
- https://github.com/ImageMagick/ImageMagick url