CVE-2025-66628

Name
CVE-2025-66628
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
CONFIRM https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8
MISC https://github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1c

Match rules

CPE URI Source package Min version Max version
imagemagick >= 0 < 7.1.2-10
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* imagemagick >= None < 7.1.2-10

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
imagemagick edge-community 7.1.2.21-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.19-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.18-r1 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.18-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.17-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.15-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.13-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.12-r1 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.12-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick edge-community 7.1.2.8-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.8-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.3-r3 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.3-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.3-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.3-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.2-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.1-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.1-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.2.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.44-r4 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.44-r3 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.44-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.44-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.44-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.43-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.41-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.36-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.35-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.34-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.33-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.32-r3 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.32-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.32-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.32-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.29-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.26-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.26-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.22-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.1.21-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.62-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.61-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.60-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.60-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.59-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.58-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.57-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.56-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.55-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.54-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.54-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.53-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.52-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.51-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.51-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.50-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.50-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.47-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.30-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.24-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.1.0.10-r0 None possibly vulnerable
imagemagick edge-community 7.1.0.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.0.11.13-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.0.11.9-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick edge-community 7.0.11.1-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.57-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.42-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.35-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.31-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.18-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.8-r0 None possibly vulnerable
imagemagick edge-community 7.0.10.0-r0 None possibly vulnerable
imagemagick edge-community 7.0.9.7-r0 None possibly vulnerable
imagemagick edge-community 7.0.8.62-r0 None possibly vulnerable
imagemagick edge-community 7.0.8.56-r0 None possibly vulnerable
imagemagick edge-community 7.0.8.53-r0 None possibly vulnerable
imagemagick edge-community 7.0.8.44-r0 None possibly vulnerable
imagemagick edge-community 7.0.8.38-r0 None possibly vulnerable
imagemagick 3.23-community 7.1.2.19-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick 3.23-community 7.1.2.17-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick 3.23-community 7.1.2.15-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick 3.23-community 7.1.2.13-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick 3.23-community 7.1.2.12-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
imagemagick 3.23-community 7.1.2.8-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick 3.22-community 7.1.2.8-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick 3.22-community 7.1.2.3-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick 3.22-community 7.1.2.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick 3.22-community 7.1.1.41-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
imagemagick 3.22-community 7.1.1.21-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.52-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.47-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.30-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.24-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.10-r0 None possibly vulnerable
imagemagick 3.22-community 7.1.0.0-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.11.9-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.11.1-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.57-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.42-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.35-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.31-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.18-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.8-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.10.0-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.9.7-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.8.62-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.8.56-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.8.53-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.8.44-r0 None possibly vulnerable
imagemagick 3.22-community 7.0.8.38-r0 None possibly vulnerable