CVE-2026-40310 PUBLISHED

ImageMagick: Heap out-of-bounds write in JP2 encoder

Assigner: GitHub_M
Reserved: 10.04.2026 Published: 13.04.2026 Updated: 13.04.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS Score: 5.5

Product Status

Vendor ImageMagick
Product ImageMagick
Versions
  • Version < 7.1.2-19 is affected
  • Version < 6.9.13-44 is affected

References

Problem Types

  • CWE-122: Heap-based Buffer Overflow CWE
  • CWE-787: Out-of-bounds Write CWE