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

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.

Published: 2025-12-10 Last update: 2026-01-06 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-66628 is rated Low Risk (34.3/100): CVSS High severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-66628

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-08 0.06% 0.04% -0.02%
2 2026-04-11 0.05% 0.06% +0.01%
3 2026-02-03 0.05%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-66628

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-66628

GitHub Security Advisory for CVE-2025-66628

GHSA-6hjr-v6g4-3fm8 · Severity: high · Ecosystem: nuget — ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds read (32-bit only)

OS Trackers for CVE-2025-66628

vendor priority summary link
alpine CVE-2025-66628: 1 source package rows (imagemagick); 108 state rows across 3 repos (3.22-community, 3.23-community, edge-community); fixed 13, open 95. https://security.alpinelinux.org/vuln/CVE-2025-66628
debian not yet assigned CVE-2025-66628 not yet assigned priority: Debian including 1 source packages (imagemagick), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-66628
redhat high https://access.redhat.com/security/cve/CVE-2025-66628
suse high CVE-2025-66628 severity important: SUSE including 98 source package names (2.1.3-5.3:rsync-3.2.7-4.1, 2.1.3-6.2:rsync-3.2.7-4.1, …), 397 product×package rows across 69 product lines (Container suse/sl-micro/6.0/baremetal-os-container, Container suse/sl-micro/6.0/base-os-container, … (69 product lines)): Fixed 359, Known Not Affected 24, First Fixed 14. https://www.suse.com/security/cve/CVE-2025-66628/
ubuntu medium CVE-2025-66628 medium priority: Ubuntu including 1 source packages (imagemagick), 9 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): needed 7, ignored 1, released 1. https://ubuntu.com/security/CVE-2025-66628

Affected software / configurations for CVE-2025-66628

Vendor Product Version Raw CPE
imagemagick imagemagick < 7.1.2-10 cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

References for CVE-2025-66628

cvelogic Threat Intelligence