CVE-2026-40312

NameCVE-2026-40312
DescriptionImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, an off by one error in the MSL decoder could result in a crash when a malicous MSL file is read. This issue has been fixed in version 7.1.2-19.
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)
ReferencesDSA-6240-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
imagemagick (PTS)bullseye8:6.9.11.60+dfsg-1.3+deb11u4fixed
bullseye (security)8:6.9.11.60+dfsg-1.3+deb11u12fixed
bookworm8:6.9.11.60+dfsg-1.6+deb12u5fixed
bookworm (security)8:6.9.11.60+dfsg-1.6+deb12u8fixed
trixie8:7.1.1.43+dfsg1-1+deb13u5vulnerable
trixie (security)8:7.1.1.43+dfsg1-1+deb13u8fixed
forky8:7.1.2.18+dfsg1-1vulnerable
sid8:7.1.2.21+dfsg1-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
imagemagicksourcebullseye(not affected)
imagemagicksourcebookworm(not affected)
imagemagicksourcetrixie8:7.1.1.43+dfsg1-1+deb13u8DSA-6240-1
imagemagicksource(unstable)8:7.1.2.19+dfsg1-1

Notes

[bookworm] - imagemagick <not-affected> (Vulnerable code not present)
[bullseye] - imagemagick <not-affected> (Vulnerable code not present)
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5xg3-585r-9jh5
https://github.com/ImageMagick/ImageMagick/commit/2a06c7be3bba3326caf8b7a8d1fa2e0d4b88998d (7.1.2-19)
Introduced with: https://github.com/ImageMagick/ImageMagick6/commit/0e328007d2eeefb9ae24bc3f4442b1a2469d772e (6.9.13-39)
Fix included in: https://github.com/ImageMagick/ImageMagick6/commit/74e89a3dad41f89dfa74399c0b087d3ee4e81f90 (6.9.13-39)

Search for package or bug name: Reporting problems