Junglewise Threat Intelligence

CVE-2026-46559: ImageMagick heap buffer overwrite in JP2 encoder

CVE-2026-46559 · Severity: medium · CVSS 4 · Published 2026-06-10

Technologies: Magick.NET-Q16-OpenMP-arm64 (NuGet), Magick.NET-Q16-AnyCPU (NuGet), Magick.NET-Q16-HDRI-AnyCPU (NuGet), Magick.NET-Q8-x86 (NuGet), Magick.NET-Q8-AnyCPU (NuGet), Magick.NET-Q16-arm64 (NuGet), Magick.NET-Q16-OpenMP-x64 (NuGet), Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet), Magick.NET-Q16-HDRI-arm64 (NuGet), Magick.NET-Q16-HDRI-x86 (NuGet), Magick.NET-Q16-HDRI-x64 (NuGet), Magick.NET-Q8-OpenMP-arm64 (NuGet), ImageMagick, Magick.NET-Q8-OpenMP-x64 (NuGet), Magick.NET-Q16-x64 (NuGet), Magick.NET-Q8-arm64 (NuGet), Magick.NET-Q8-x64 (NuGet), Magick.NET-Q16-x86 (NuGet), Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet). Vendors: NuGet, ImageMagick.

Executive brief

ImageMagick is a widely used open-source tool for editing and converting digital images. A flaw in how it handles JP2 (JPEG 2000) images could allow a local attacker to cause a minor memory error by providing specific image processing options. This could lead to a program crash, potentially disrupting automated image processing workflows.

Technical details

An off-by-one error (CWE-193) in the JP2 encoder of ImageMagick leads to a single-byte heap buffer overwrite (CWE-787). The vulnerability is triggered by an incorrect bounds check when specific image processing options are used during JP2 conversion. An attacker with local access can exploit this to cause a denial-of-service (application crash) by providing a specially crafted set of options or image data. The issue is fixed in versions 6.9.13-48 and 7.1.2-23.

Affected products

  • ImageMagick ImageMagick < 6.9.13-48, < 7.1.2-23

Timeline

  • 2026-05-17: advisory: Initial GitHub security advisory published
  • 2026-06-10: disclosed: NVD publication date

References

Related threats