ADVISORIES

Vulnerability

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 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.

24 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-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…

    CVE-2025-66628 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2025-66628
    CVE-2025-66628 Alpine Updated 18 November 2026
  • CGA-c4w3-4mgg-wqr6
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-f46j-p4rw-qmgp
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-gr9f-54qj-vqc3
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-h922-hgm2-7x7f
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-j4wh-vphr-5g67
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-p638-wv85-hqcr
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-w74v-9hfq-w4gm
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • CGA-x7h2-x87c-fv6r
    CVE-2025-66628 Chainguard Updated 5 November 2026
  • DEBIAN-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…

    CVE-2025-66628 Debian Updated 26 September 2026
  • DLA-4429-1

    imagemagick - security update

    CVE-2025-65955CVE-2025-66628CVE-2025-68469CVE-2025-68618 Debian Updated 20 November 2026
  • GHSA-6hjr-v6g4-3fm8

    ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds read (32-bit only)

    High CVE-2025-66628 NuGet Updated 10 September 2026
  • RHVEX-CVE-2025-66628

    ImageMagick: ImageMagick Integer Overflow leading to out of bounds read (32-bit only)

    Important CVE-2025-66628 Red Hat Updated 4 November 2026
  • SUSE-SU-2025:4427-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628 SUSE Updated 23 March 2026
  • SUSE-SU-2025:4428-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628 SUSE Updated 23 March 2026
  • SUSE-SU-2025:4429-1

    Security update for ImageMagick

    CVE-2025-66628 SUSE Updated 23 March 2026
  • SUSE-SU-2026:0011-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2026:0013-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628CVE-2025-68469 SUSE Updated 23 March 2026
  • SUSE-SU-2026:20183-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628CVE-2025-68618CVE-2025-68950 SUSE Updated 23 March 2026
  • SUSEVEX-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…

    Important CVE-2025-66628 SUSE Updated 15 October 2026
  • UBUNTU-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…

    CVE-2025-66628 Ubuntu Updated 1 October 2026
  • openSUSE-SU-2025:15829-1

    ImageMagick-7.1.2.10-2.1 on GA media

    CVE-2025-66628 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:20118-1

    Security update for ImageMagick

    CVE-2025-65955CVE-2025-66628CVE-2025-68618CVE-2025-68950 openSUSE Updated 23 March 2026

References