CVE-2026-28688

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

Published Mar 9, 2026 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A heap-use-after-free flaw exists in ImageMagick’s MSL encoder that frees a cloned image twice. The vulnerability is associated with CWE‑416 and may cause memory corruption when the MSL image is processed. The advisory does not explicitly state a crash or arbitrary code execution, only that undefined behavior can result.

Affected Systems

The flaw affects ImageMagick versions earlier than 7.1.2‑16 and 6.9.13‑41. Users of the ImageMagick software stack who rely on the MSL encoder are at risk.

Risk and Exploitability

The CVSS score of 4 indicates a moderate severity. The EPSS score is below 1% and the vulnerability is not listed in KEV, suggesting a low likelihood of widespread exploitation. An attacker would need to supply a crafted MSL image to trigger the issue, potentially during image processing by any software that uses the MSL encoder.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to 7.1.2‑16 or 6.9.13‑41, the versions in which the MSL encoder issue is fixed.
  • Disable MSL image format support in your application to prevent the vulnerable encoder from being invoked.
  • Implement input validation to reject or block MSL images before they reach the image processing pipeline.

Generated by OpenCVE AI on April 18, 2026 at 09:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4539-1 imagemagick security update
Debian DSA Debian DSA DSA-6169-1 imagemagick security update
Debian DSA Debian DSA DSA-6210-1 imagemagick security update
Github GHSA Github GHSA GHSA-xxw5-m53x-j38c ImageMagick has heap use-after-free in the MSL encoder
Ubuntu USN Ubuntu USN USN-8558-1 ImageMagick vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
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.
Title ImageMagick has a heap use-after-free in the MSL encoder
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2026, 4:02 PM
Reserved
Mar 2, 2026, 9:43 PM
Status
Analyzed
Published
Mar 10, 2026, 7:43 AM
Modified
Jun 17, 2026, 10:28 AM
Severity
Moderate
Public date
Mar 9, 2026, 9:38 PM