CVE-2026-40310
ImageMagick: Heap out-of-bounds write in JP2 encoder
CVSS Score
5.5
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-122 CWE-787 |
| Vendor | imagemagick |
| Product | imagemagick |
| Published | Apr 13, 2026 |
| Last Updated | Apr 14, 2026 |
Stay Ahead of the Next One
Get instant alerts for imagemagick imagemagick
Be the first to know when new medium vulnerabilities affecting imagemagick imagemagick are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Affected Versions
ImageMagick / ImageMagick
< 7.1.2-19 < 6.9.13-44
References
github.com: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh github.com: https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9 github.com: https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 github.com: https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0