VYPR
Moderate severityNVD Advisory· Published Mar 9, 2026· Updated Mar 10, 2026

ImageMagick has a heap use-after-free in the MSL encoder

CVE-2026-28688

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, a heap-use-after-free vulnerability exists in the MSL encoder, where a cloned image is destroyed twice. The MSL coder does not support writing MSL so the write capability has been removed. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A heap-use-after-free in ImageMagick's MSL encoder allows double-free of a cloned image, fixed in versions 7.1.2-16 and 6.9.13-41.

Vulnerability

Overview

CVE-2026-28688 is a heap-use-after-free vulnerability in ImageMagick, a widely used open-source image processing suite. The bug resides in the MSL (Magick Scripting Language encoder, where a cloned image object is destroyed twice, leading to a double-free condition. This flaw affects all versions prior to 7.1.2-16 and 6.9.13-41 [2][4].

Exploitation

Details

The vulnerability is triggered during the encoding process when the MSL coder attempts to write an image. However, the MSL coder does not actually support writing MSL files, so the write capability has been removed in the patched versions [2][4]. An attacker could potentially exploit this by crafting a malicious input that causes the encoder to clone andle a cloned image improperly, resulting in a use-after-free condition. No authentication or authentication is required beyond the ability to supply an image for processing [1][2].

Impact

Successful exploitation could lead to memory corruption, potentially allowing an attacker to crash the application or execute arbitrary code or cause a denial of service. The vulnerability is classified as a heap-use-after-free, which is a common class of memory safety issues that can be leveraged for code execution [4].

Mitigation

The vulnerability has been patched in ImageMagick versions 7.1.2-16 and 6.9.13-41. Users are strongly advised to update to these versions or later. The MSL write capability has been removed entirely to prevent future issues [2][4]. The fix is also included in the Magick.NET release 14.10.4 also incorporates this fix [3].

AI Insight generated on May 18, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
Magick.NET-Q16-AnyCPUNuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-AnyCPUNuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-OpenMP-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-x64NuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-x86NuGet
< 14.10.414.10.4
Magick.NET-Q16-OpenMP-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q16-OpenMP-x64NuGet
< 14.10.414.10.4
Magick.NET-Q16-OpenMP-x86NuGet
< 14.10.414.10.4
Magick.NET-Q16-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q16-x64NuGet
< 14.10.414.10.4
Magick.NET-Q16-x86NuGet
< 14.10.414.10.4
Magick.NET-Q16-HDRI-OpenMP-x64NuGet
< 14.10.414.10.4
Magick.NET-Q8-AnyCPUNuGet
< 14.10.414.10.4
Magick.NET-Q8-OpenMP-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q8-OpenMP-x64NuGet
< 14.10.414.10.4
Magick.NET-Q8-arm64NuGet
< 14.10.414.10.4
Magick.NET-Q8-x64NuGet
< 14.10.414.10.4
Magick.NET-Q8-x86NuGet
< 14.10.414.10.4

Affected products

2
  • ImageMagick/Imagemagickllm-fuzzy2 versions
    < 7.1.2-16, < 6.9.13-41+ 1 more
    • (no CPE)range: < 7.1.2-16, < 6.9.13-41
    • (no CPE)range: >= 7.0.0, < 7.1.2-16

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.