Junglewise Threat Intelligence

CVE-2026-40169: ImageMagick heap overflow in YAML and JSON encoders

CVE-2026-40169 · Severity: medium · CVSS 6.2 · Published 2026-04-13

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-arm64 (NuGet), Magick.NET-Q16-HDRI-x86 (NuGet), Magick.NET-Q16-HDRI-x64 (NuGet), Magick.NET-Q8-OpenMP-arm64 (NuGet), Dlemstra Magick.NET, Magick.NET-Q8-OpenMP-x64 (NuGet), ImageMagick, 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 is a widely used software suite for displaying, converting, and editing image files. A vulnerability in how it handles certain data formats could allow a specially crafted image to cause the application to crash. This could lead to a denial-of-service, impacting the availability of automated image processing workflows.

Technical details

A heap-based buffer overflow (CWE-122) exists in ImageMagick's YAML and JSON encoders. The vulnerability is triggered when the software attempts to write image data to YAML or JSON output formats. An attacker can provide a specially crafted image file that, when processed, results in an out-of-bounds write on the heap. This typically results in a process crash (Denial of Service). The issue is 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: advisory: NVD publication date
  • 2026-04-14: disclosed: GitHub Advisory published

References

Related threats