Junglewise Threat Intelligence

CVE-2026-40183: ImageMagick heap buffer overflow in JXL encoder

CVE-2026-40183 · Severity: medium · CVSS 5.5 · Published 2026-04-14

Technologies: Magick.NET-Q16-OpenMP-arm64 (NuGet), Magick.NET-Q16-AnyCPU (NuGet), Dlemstra Magick.NET, 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-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, Dlemstra, ImageMagick.

Executive brief

ImageMagick, a widely used software suite for displaying and converting images, is vulnerable to a memory-related flaw when processing JPEG XL (JXL) images. If a user is tricked into processing a specially crafted image file using 16-bit float encoding, the application may crash or become unresponsive. This could lead to a denial of service, impacting automated image processing workflows or applications that rely on ImageMagick for content rendering.

Technical details

A heap-based buffer overflow (CWE-122) exists in the JXL encoder of ImageMagick. The vulnerability is triggered when a user specifies that an image should be encoded as 16-bit floats, leading to an out-of-bounds write on the heap. The attack vector is local and requires user interaction, such as opening or processing a malicious image file. Successful exploitation primarily impacts system availability by causing a crash (Denial of Service). The issue has been addressed in ImageMagick version 7.1.2-19 and Magick.NET version 14.12.0.

Affected products

  • ImageMagick ImageMagick < 7.1.2-19
  • dlemstra Magick.NET < 14.12.0

Timeline

  • 2026-04-13: disclosed
  • 2026-04-13: patched: Fixed in ImageMagick 7.1.2-19 and Magick.NET 14.12.0
  • 2026-04-14: advisory

References

Related threats