CVE-2026-40310

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

History

17 Apr 2026, 20:44

Type Values Removed Values Added
CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
References () https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9 - () https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9 - Patch
References () https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 - () https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 - Release Notes
References () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh - () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh - Vendor Advisory
References () https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 - () https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 - Release Notes
First Time Imagemagick
Imagemagick imagemagick

13 Apr 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-13 22:16

Updated : 2026-04-17 20:44


NVD link : CVE-2026-40310

Mitre link : CVE-2026-40310

CVE.ORG link : CVE-2026-40310


JSON object : View

Products Affected

imagemagick

  • imagemagick
CWE
CWE-122

Heap-based Buffer Overflow

CWE-787

Out-of-bounds Write