Red Hat VEX
RHVEX-CVE-2026-40310
ImageMagick: Magick.NET: ImageMagick: Denial of service via heap out-of-bounds write in JP2 encoder
Details
A flaw was found in ImageMagick. This vulnerability, a heap out-of-bounds write, occurs within the JPEG 2000 (JP2) encoder when processing an image with an invalid sampling index. A remote attacker could exploit this by providing a specially crafted image, which may lead to a denial of service (DoS) by causing the application to crash or become unstable.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | ImageMagick | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-c++ | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-c++-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-perl | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-c++ | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-c++-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-perl | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2026-40310
- https://bugzilla.redhat.com/show_bug.cgi?id=2458047
- https://www.cve.org/CVERecord?id=CVE-2026-40310
- https://nvd.nist.gov/vuln/detail/CVE-2026-40310
- https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0