CVE-2026-86421
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2026-86421 is a memory leak vulnerability in ImageMagick's MSL (Magick Scripting Language) image decoder that allows unauthenticated remote attackers to cause a denial of service by exhausting server memory. It affects ImageMagick versions before 7.1.2-30 (7.x branch) and before 6.9.13-55 (6.x branch). The vulnerability was published on September 7, 2026, with the underlying security advisory (GHSA-4jv7-q6xw-6f4x) credited to reporter Yanhaoxi. It carries a CVSS v3.1 base score of 3.7 (Low) and a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory, ImageMagick Advisory).

Technical details

The root cause is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-401 (Missing Release of Memory after Effective Lifetime), reflecting a failure to properly deallocate memory allocated during MSL image decoding. When ImageMagick processes a specially crafted MSL image file, the decoder allocates memory that is never freed, causing cumulative memory exhaustion over repeated requests. Exploitation requires no authentication or user interaction, though the high attack complexity rating indicates that specific conditions or repeated submissions may be necessary to trigger meaningful impact (ImageMagick Advisory, GitHub Advisory).

Impact

Successful exploitation results in a denial of service condition, as the ImageMagick process progressively exhausts available system memory, potentially rendering the service unresponsive. There is no impact to confidentiality or data integrity — the vulnerability is limited to availability. Applications that accept user-supplied image files and process them with ImageMagick (e.g., web upload services, image conversion pipelines) are most at risk, as repeated submission of crafted MSL files could degrade or crash the hosting service (GitHub Advisory, ImageMagick Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is 0.0, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Identify target: Locate a service that accepts image uploads and processes them with a vulnerable version of ImageMagick (before 7.1.2-30 or 6.9.13-55), such as a web application with image conversion or thumbnail generation functionality.
  2. Craft malicious MSL file: Construct a specially crafted MSL image file designed to trigger repeated memory allocations within ImageMagick's MSL decoder without triggering corresponding deallocations.
  3. Submit crafted file: Upload or submit the crafted MSL file to the target service repeatedly, either through a web form, API endpoint, or any interface that passes the file to ImageMagick for processing.
  4. Exhaust memory: Each processing request leaks memory; repeated submissions progressively consume available system memory, eventually causing the ImageMagick process or the hosting service to become unresponsive or crash, achieving denial of service (ImageMagick Advisory).

Indicators of compromise

  • Process Behavior: Steadily increasing memory consumption by ImageMagick worker processes (convert, magick, or application-embedded ImageMagick calls) without corresponding release over time.
  • Logs: Application or web server logs showing repeated image processing requests involving MSL-format files from the same or rotating source IPs; error logs indicating out-of-memory conditions or ImageMagick process crashes.
  • System: System-level alerts for high memory utilization or OOM (Out of Memory) killer events targeting ImageMagick-related processes; sudden service unavailability correlated with image upload activity.
  • Network: High volume of image upload requests (particularly .msl files or files with MSL content) from a single source or distributed sources in a short time window.

Mitigation and workarounds

Update ImageMagick to version 7.1.2-30 or later (7.x branch) or 6.9.13-55 or later (6.x branch), which contain the fix for this memory leak (ImageMagick Advisory). As interim mitigations, implement input validation to reject or sanitize MSL image files from untrusted sources before they reach ImageMagick. Additionally, consider applying rate limiting to image processing endpoints and configuring memory limits (e.g., via ImageMagick's policy.xml) to cap resource consumption per process.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

imagemagick

Affected

sid

imagemagick: 8:7.1.2.31+dfsg1-1

Fixed

trixie

imagemagick

Affected

Ubuntu

Unknown

bionic (esm-infra)

imagemagick

Unknown

devel

imagemagick

Unknown

focal (esm-apps)

imagemagick

Unknown

jammy

imagemagick

Unknown

jammy (esm-apps)

imagemagick

Unknown

noble

imagemagick

Unknown

noble (esm-apps)

imagemagick

Unknown

resolute

imagemagick

Unknown

RHEL / CentOS

Unknown

Alpine

Affected

edge

7.0.8.38-r0

Affected

v3.24

7.1.2.24-r0

Affected

SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86421MEDIUM6.3
  • ImageMagick logoImageMagick
  • ImageMagick-c++
NoYesSep 07, 2026
CVE-2026-86425MEDIUM4.8
  • ImageMagick logoImageMagick
  • seal-ImageMagick
NoYesSep 07, 2026
CVE-2026-86423MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick-c++
NoYesSep 07, 2026
CVE-2026-86424LOW2
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 07, 2026
CVE-2026-86422LOW1
  • ImageMagick logoImageMagick
  • cpe:2.3:a:imagemagick:imagemagick
NoYesSep 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management