# CVE-2026-56368: ImageMagick memory leak in raw pixel data coders

Source: https://junglewise.ai/threats/cve-2026-56368-imagemagick-memory-leak-in-raw-pixel-data-coders  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-24. Updated: 2026-06-24  
License: CC BY 4.0 with a link back

CVE-2026-56368 · Severity: low · CVSS 3.7 · Published 2026-06-24

ImageMagick, a widely used tool for processing and converting images, contains a memory leak when writing certain raw pixel data formats. If exploited, this could allow an attacker to slowly consume a server's available memory by submitting specially crafted image processing requests. Over time, this may lead to degraded performance or a service outage (denial of service) as the system runs out of resources.

Technologies: [ImageMagick](https://junglewise.ai/threats/technologies/imagemagick), [Magick.NET-Q16-AnyCPU (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-anycpu), [Magick.NET-Q16-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-arm64), [Magick.NET-Q16-HDRI-AnyCPU (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-anycpu), [Magick.NET-Q16-HDRI-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-arm64), [Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-openmp-arm64), [Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-openmp-x64), [Magick.NET-Q16-HDRI-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-x64), [Magick.NET-Q16-HDRI-x86 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-hdri-x86), [Magick.NET-Q16-OpenMP-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-openmp-arm64), [Magick.NET-Q16-OpenMP-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-openmp-x64), [Magick.NET-Q16-OpenMP-x86 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-openmp-x86), [Magick.NET-Q16-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-x64), [Magick.NET-Q16-x86 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q16-x86), [Magick.NET-Q8-AnyCPU (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-anycpu), [Magick.NET-Q8-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-arm64), [Magick.NET-Q8-OpenMP-arm64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-openmp-arm64), [Magick.NET-Q8-OpenMP-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-openmp-x64), [Magick.NET-Q8-x64 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-x64), [Magick.NET-Q8-x86 (NuGet)](https://junglewise.ai/threats/technologies/magick-net-q8-x86). Vendors: [ImageMagick](https://junglewise.ai/threats/vendors/imagemagick), [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2026-56368 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-56368 being exploited in the wild.

**How severe is CVE-2026-56368?** Low severity, with a CVSS score of 3.7, published 24 June 2026.

**Which products and versions are affected?** ImageMagick < 14.10.3; Magick.NET-Q16-AnyCPU (NuGet) < 14.10.3, ECOSYSTEM:introduced=0,fixed=14.10.3; Magick.NET-Q16-arm64 (NuGet) < 14.10.3, ECOSYSTEM:introduced=0,fixed=14.10.3; Magick.NET-Q16-HDRI-AnyCPU (NuGet) < 14.10.3, ECOSYSTEM:introduced=0,fixed=14.10.3; and 16 more.

**Is there a fix for CVE-2026-56368?** Yes. Magick.NET-Q16-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-x86 (NuGet): upgrade to 14.10.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-56368 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-56368?** Check whether you run ImageMagick, Magick.NET-Q16-AnyCPU (NuGet), Magick.NET-Q16-arm64 (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Magick.NET-Q16-AnyCPU (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.3
  ```

- Magick.NET-Q16-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-arm64 --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-AnyCPU (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.3
  ```

- Magick.NET-Q16-HDRI-x86 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.3
  ```

- Magick.NET-Q16-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.3
  ```

- Magick.NET-Q16-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.3
  ```

- Magick.NET-Q16-OpenMP-x86 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-OpenMP-x86 --version 14.10.3
  ```

- Magick.NET-Q16-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-x64 --version 14.10.3
  ```

- Magick.NET-Q16-x86 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q16-x86 --version 14.10.3
  ```

- Magick.NET-Q8-AnyCPU (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.3
  ```

- Magick.NET-Q8-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-arm64 --version 14.10.3
  ```

- Magick.NET-Q8-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.3
  ```

- Magick.NET-Q8-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.3
  ```

- Magick.NET-Q8-x64 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-x64 --version 14.10.3
  ```

- Magick.NET-Q8-x86 (NuGet): upgrade to 14.10.3 or later

  ```sh
  dotnet add package Magick.NET-Q8-x86 --version 14.10.3
  ```


## Technical details

A memory leak vulnerability (CWE-401) exists in ImageMagick within multiple coders responsible for writing raw pixel data. The issue stems from a failure to free allocated objects (specifically noted as 160-byte leaks) during the image writing process. An attacker can trigger this leak remotely via the network by providing input that utilizes these specific coders. While the complexity is high and the impact per-request is small, repeated exploitation can lead to a denial-of-service condition through memory exhaustion. The vulnerability is addressed in ImageMagick source and Magick.NET version 14.10.3.

## Affected products

- ImageMagick Magick.NET-Q16-AnyCPU < 14.10.3
- ImageMagick Magick.NET-Q16-HDRI-AnyCPU < 14.10.3
- ImageMagick Magick.NET-Q8-AnyCPU < 14.10.3
- ImageMagick ImageMagick Fixed in commit fe0a49a

## Identifiers

- CVE-2026-56368
- GHSA-wfx3-6g53-9fgc

## Timeline

- 2026-02-23: patched: Initial patch and Magick.NET release
- 2026-02-25: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/ylwango613](https://api.github.com/users/ylwango613)
- [https://github.com/ylwango613](https://github.com/ylwango613)
- [https://api.github.com/users/ylwango613/gists%7B/gist_id%7D](https://api.github.com/users/ylwango613/gists%7B/gist_id%7D)
- [https://api.github.com/users/ylwango613/repos](https://api.github.com/users/ylwango613/repos)
- [https://avatars.githubusercontent.com/u/128395302?v=4](https://avatars.githubusercontent.com/u/128395302?v=4)
- [https://api.github.com/users/ylwango613/events%7B/privacy%7D](https://api.github.com/users/ylwango613/events%7B/privacy%7D)

## Related threats

- [ImageMagick infinite loop in SVG decoder](https://junglewise.ai/threats/cve-2026-123273-imagemagick-before-7-1-2-35-and-6-9-13-60-contains-an-infinite)
- [ImageMagick memory leak in XMP profile handling](https://junglewise.ai/threats/cve-2026-116155-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick memory leak in XML parsing depth limit](https://junglewise.ai/threats/cve-2026-116154-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick memory leak in MAT decoder](https://junglewise.ai/threats/cve-2026-116152-imagemagick-before-7-1-2-33-contains-a-memory-leak-vulnerability)
- [ImageMagick stack buffer overflow in bzip2 decompression](https://junglewise.ai/threats/cve-2026-116149-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
