CVE-2026-40310

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

State
Published
Severity
5.5 Medium
Published
Apr 13, 2026
Updated
Apr 14, 2026
Reserved
Apr 10, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

Affected Products

ProductVersions
ImageMagickImageMagick
  • < 7.1.2-19Affected
  • < 6.9.13-44Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.