All vulnerabilities

Servers and applications

CVE-2025-66628

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…

Severity
High 7.5
Published
10 Dec 2025
Last changed
25 Sept 2026
Added to UpHeron
1 Nov 2026
Fixed in
7.1.2-10
Exploit chance
0.6% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Out-of-bounds read (CWE-125)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Sources
NVD

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.

From NVD.

Affected software

SoftwareAffected versions
ImageMagickServers and applications · cpe:a:imagemagick:imagemagick
  • Every version before 7.1.2-10

About ImageMagick

free and open-source software

From Wikidata, CC0 1.0.
GitHub stars
17,859GitHub, 15 Nov 2026
Forks
1,706GitHub, 15 Nov 2026
Latest release
7.1.2-35GitHub, 15 Nov 2026
Released
31 Oct 2026GitHub
Developer
ImageMagick Studio LLCWikidata
License
ImageMagick LicenseWikidata
Written in
CWikidata
First released
1990Wikidata
First published on GitHub
17 May 2015GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2025-66628
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2025-66628