ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-40310

ImageMagick: Magick.NET: ImageMagick: Denial of service via heap out-of-bounds write in JP2 encoder

Moderate No fix available CVE-2026-40310

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

EcosystemPackageAffected versions
Red Hat:enterprise_linux:6ImageMagick
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ImageMagick-c++
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ImageMagick-c++-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ImageMagick-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ImageMagick-doc
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ImageMagick-perl
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick-c++
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick-c++-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick-doc
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ImageMagick-perl
All versions, no fix (out of support scope)

References