CVE-2026-40310: ImageMagick

Medium severity, CVSS 5.5. EPSS: 0.2% chance of exploitation in the next 30 days.

ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below both 7.1.2-19 and 6.9.13-44, contain a heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Affected products

  • ImageMagick ImageMagick: before 6.9.13-44 (fixed in 6.9.13-44); from 7.0.0-0, before 7.1.2-19 (fixed in 7.1.2-19)

Published 2026-04-13. Last modified 2026-06-17.