CVE-2026-40310: ImageMagick has a heap out-of-bounds write in JP2 encoder
Heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index.
References
- github.com/ImageMagick/ImageMagick
- github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9
- github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh
- github.com/advisories/GHSA-pwg5-6jfc-crvh
- github.com/dlemstra/Magick.NET/releases/tag/14.12.0
- nvd.nist.gov/vuln/detail/CVE-2026-40310
Code Behaviors & Features
Detect and mitigate CVE-2026-40310 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →