CVE catalog

CVE-2025-66628

imagemagick: CVE-2025-66628

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.51% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianimagemagicksid8:7.1.2.34+dfsg1-1fixed
Debianimagemagickforky8:7.1.2.31+dfsg1-1fixed
Debianimagemagicktrixie8:7.1.1.43+dfsg1-1+deb13u12fixed
Debianimagemagicktrixie-security8:7.1.1.43+dfsg1-1+deb13u11fixed
Debianimagemagickbookworm8:6.9.11.60+dfsg-1.6+deb12u11fixed
Debianimagemagickbookworm-security8:6.9.11.60+dfsg-1.6+deb12u14fixed
CpeimagemagickNot reported7.1.2-10fixed
Ubuntuimagemagickpro8:6.9.11.60+dfsg-1.6ubuntu1vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2build1vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2build2vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm1vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm5vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm6vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm7vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm8vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm10vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm11vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm12vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm13vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm14vulnerable
Ubuntuimagemagickpro8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm15vulnerable
Ubuntuimagemagick25.108:7.1.1.43+dfsg1-1vulnerable
Ubuntuimagemagick25.108:7.1.1.43+dfsg1-1ubuntu1vulnerable
Ubuntuimagemagick25.108:7.1.1.43+dfsg1-1ubuntu2vulnerable
Ubuntuimagemagick25.108:7.1.2.3+dfsg1-1vulnerable
Ubuntuimagemagick25.108:7.1.2.3+dfsg1-1ubuntu0.1vulnerable
OpensuseImageMagicktumbleweed7.1.2.10-2.1fixed
SuseImageMagicklinux enterprise server 12 sp5-ltss6.8.8.1-71.218.1fixed
SuseImageMagicklinux enterprise server ltss extended security 12 sp56.8.8.1-71.218.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianimagemagicksourcesid8:7.1.2.12+dfsg1-1not yet assignedNot reported[1122584]
Debianimagemagicksourceforky8:7.1.2.12+dfsg1-1not yet assignedNot reported[1122584]
Debianimagemagicksourcetrixie8:7.1.1.43+dfsg1-1+deb13u4not yet assignedNot reported[1122584]
Debianimagemagicksourcebookworm8:6.9.11.60+dfsg-1.6+deb12u5not yet assignedNot reported[1122584]
CpeimagemagickcpeNot reported7.1.2-10Not reportedNVD-CVE-2025-66628Not reported
OpensuseImageMagickrpmtumbleweed7.1.2.10-2.1Not reportedOPENSUSE-SU-2025:15829-1Not reported
SuseImageMagickrpmlinux enterprise server 12 sp5-ltss6.8.8.1-71.218.1Not reportedSUSE-SU-2025:4429-1Not reported
SuseImageMagickrpmlinux enterprise server ltss extended security 12 sp56.8.8.1-71.218.1Not reportedSUSE-SU-2025:4429-1Not reported

[Debian bug #1122584]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.1 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.1 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.1 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.1 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · noarch · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

  • Source package: [ImageMagick]

    Details (1)
    • 7.1.2.29-1.2 · x86_64 · tumbleweed

      Unknown · Fixed: 7.1.2.10-2.1

      Version impact unknown

      dsa · ImageMagick · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Details (4)
    • 8:6.9.11.60+dfsg-1.6+deb12u11 · amd64 · bookworm

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u11 · arm64 · bookworm

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u13 · amd64 · bookworm-security

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u13 · arm64 · bookworm-security

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

  • Source package: [imagemagick]

    Details (4)
    • 8:6.9.11.60+dfsg-1.6+deb12u11 · all · bookworm

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u11 · all · bookworm

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u13 · all · bookworm-security

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

    • 8:6.9.11.60+dfsg-1.6+deb12u13 · all · bookworm-security

      Fixed · Fixed: 8:6.9.11.60+dfsg-1.6+deb12u5

      dsa · imagemagick · debian · bookworm; dsa · imagemagick · debian · 12

Next results

Observed:

References