CVE-2026-40310
MEDIUMImageMagick: Heap out-of-bounds write in JP2 encoder
Title source: cnaDescription
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.
References (4)
Core 4
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh
X_Refsource_Misc x_refsource_misc
https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9
X_Refsource_Misc x_refsource_misc
https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
X_Refsource_Misc x_refsource_misc
https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0
Scores
CVSS v3
5.5
EPSS
0.0019
EPSS Percentile
8.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-122
CWE-787
Status
published
Products (19)
imagemagick/imagemagick
< 6.9.13-44
ImageMagick/ImageMagick
< 6.9.13-44
ImageMagick/ImageMagick
< 7.1.2-19
nuget/Magick.NET-Q16-AnyCPU
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-arm64
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-HDRI-AnyCPU
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-HDRI-OpenMP-arm64
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-HDRI-x64
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-HDRI-x86
0 - 14.12.0NuGet
nuget/Magick.NET-Q16-OpenMP-arm64
0 - 14.12.0NuGet
... and 9 more
Published
Apr 13, 2026
Tracked Since
Apr 14, 2026