CVE-2025-55212

NameCVE-2025-55212
DescriptionImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2, passing a geometry string containing only a colon (":") to montage -geometry leads GetGeometry() to set width/height to 0. Later, ThumbnailImage() divides by these zero dimensions, triggering a crash (SIGFPE/abort), resulting in a denial of service. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4297-1, DSA-5997-1
Debian Bugs1111587

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
imagemagick (PTS)bullseye8:6.9.11.60+dfsg-1.3+deb11u4vulnerable
bullseye (security)8:6.9.11.60+dfsg-1.3+deb11u6fixed
bookworm8:6.9.11.60+dfsg-1.6+deb12u3vulnerable
bookworm (security)8:6.9.11.60+dfsg-1.6+deb12u4fixed
trixie8:7.1.1.43+dfsg1-1+deb13u1vulnerable
trixie (security)8:7.1.1.43+dfsg1-1+deb13u2fixed
forky, sid8:7.1.2.3+dfsg1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
imagemagicksourcebullseye8:6.9.11.60+dfsg-1.3+deb11u6DLA-4297-1
imagemagicksourcebookworm8:6.9.11.60+dfsg-1.6+deb12u4DSA-5997-1
imagemagicksourcetrixie8:7.1.1.43+dfsg1-1+deb13u2DSA-5997-1
imagemagicksource(unstable)8:7.1.2.3+dfsg1-11111587

Notes

https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fh55-q5pj-pxgw
Fixed by [1/2]: https://github.com/ImageMagick/ImageMagick/commit/43d92bf855155e8e716ecbb50ed94c2ed41ff9f6 (7.1.2-2)
Fixed by [2/2]: https://github.com/ImageMagick/ImageMagick/commit/5f0bcf986b8b5e90567750d31a37af502b73f2af (7.1.2-2)
Fixed by [1/2]: https://github.com/ImageMagick/ImageMagick6/commit/5fddcf974342d8e5e02f604bc2297c038e3d4196 (6.9.13-28)
Fixed by [2/2]: https://github.com/ImageMagick/ImageMagick6/commit/3482953ef0af1e538cb776162a8d278141e0b9a0 (6.9.13-28)

Search for package or bug name: Reporting problems