CVE-2026-25971

NameCVE-2026-25971
DescriptionImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, Magick fails to check for circular references between two MSLs, leading to a stack overflow. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4539-1, DLA-4858-1, DSA-6158-1, DSA-6245-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
imagemagick (PTS)bookworm8:6.9.11.60+dfsg-1.6+deb12u11vulnerable
bookworm (security)8:6.9.11.60+dfsg-1.6+deb12u14fixed
trixie8:7.1.1.43+dfsg1-1+deb13u12fixed
trixie (security)8:7.1.1.43+dfsg1-1+deb13u11fixed
forky8:7.1.2.31+dfsg1-1fixed
sid8:7.1.2.34+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+deb11u11DLA-4539-1
imagemagicksourcebookworm8:6.9.11.60+dfsg-1.6+deb12u14DLA-4858-1
imagemagicksourcetrixie8:7.1.1.43+dfsg1-1+deb13u6DSA-6158-1
imagemagicksource(unstable)8:7.1.2.15+dfsg1-1

Notes

https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8mpr-6xr2-chhc
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/9313e530b37272b748898febd42b5949756f0179 (7.1.2-14)
Fixed by: https://github.com/ImageMagick/ImageMagick6/commit/9795300c611926fc895dd4e02a34ce185d8ed651 (6.9.13-39)
Regression: https://github.com/imagemagick/ImageMagick/issues/8803
Regression fixed by: https://github.com/ImageMagick/ImageMagick/commit/c0a724bbbd2c131ca6e2b79e67cd245e5150a19a (7.1.2-26)
Regression fixed by: https://github.com/ImageMagick/ImageMagick6/commit/52f1b731c3f5c3eb4808bdaa88eb86c38e0b3a92 (6.9.13-51)

Search for package or bug name: Reporting problems