Skip to main content

ImageMagick CVE-2026-25969

HIGH
Memory Leak (CWE-401)
2026-02-24 security-advisories@github.com GHSA-xgm3-v4r9-wfgm
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service using ImageMagick
  2. Delivery
    Submit crafted image triggering ASHLAR write
  3. Exploit
    Force exception in WriteASHLARImage
  4. Execution
    Leak allocated structure per request
  5. Persist
    Loop requests to exhaust heap
  6. Impact
    Process OOM-killed, denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires that the target application invoke ImageMagick’s ASHLAR writer (output format ashlar:) on attacker-influenced input and that an exception be reachable inside WriteASHLARImage; impact only becomes meaningful in long-running processes where the leak can accumulate across many requests. The CVSS vector lists PR:N and UI:N so no authentication or user interaction is modeled, but realistic exposure is limited to deployments that expose ImageMagick conversion to untrusted callers and that explicitly route writes through the ASHLAR coder - CLI one-shot invocations and pipelines that do not write ASHLAR are not practically exploitable.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:H) yields 7.5 by treating the leak as an unauthenticated remote availability hit, but that scoring is optimistic for a per-call memory leak that only manifests when an ASHLAR write actually throws an exception - practical DoS requires a long-lived service that repeatedly invokes the ASHLAR writer on attacker-controlled input. EPSS is extremely low at 0.05% (16th percentile) and the CVE is not on CISA KEV, which is consistent with no public exploit identified at time of analysis. AV:N is plausible only for environments that expose ImageMagick image conversion to untrusted input over the network (image-upload pipelines, thumbnailing services); for CLI or batch use the realistic vector is local. Overall this is a low-urgency hardening fix rather than an emergency patch, but it should still be rolled into normal patch cycles because ImageMagick’s deployment footprint is large.

Exploit ScenarioDerived

An attacker uploads or submits a crafted image to a web service that uses ImageMagick to convert content into ASHLAR-format layouts, deliberately triggering the exception path in WriteASHLARImage so that the structure leaks on every request. Repeating this against a long-lived worker process gradually exhausts heap memory until the service is OOM-killed or stalls. No public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 23, 2026

Denial of service in ImageMagick prior to 7.1.2-15 stems from a memory leak in the WriteASHLARImage function within coders/ashlar.c, where an allocated structure is not released when an exception is thrown during ASHLAR image encoding. Remote attackers who can submit images for processing can trigger repeated leaks to exhaust process memory in long-running services that embed ImageMagick. No public exploit identified at time of analysis, and EPSS risk is negligible at 0.05% (16th percentile).

Earlier versions of this analysis (4)
v4 Jun 23, 2026 - 18:49 cvss changed CVSS 7.5

Memory leak in ImageMagick's ASHLAR image encoder (coders/ashlar.c) allows remote attackers to gradually exhaust process memory by triggering exceptions during WriteASHLARImage, where an allocated structure is not freed on the error path. All ImageMagick builds prior to 7.1.2-15 (and Magick.NET prior to 14.10.3) are affected; no public exploit identified at time of analysis and EPSS exploitation probability is 0.05%, indicating low active-targeting interest despite the 7.5 CVSS score.

v3 Jun 23, 2026 - 18:48 cvss changed CVSS 7.5

Denial-of-service condition in ImageMagick prior to 7.1.2-15 stems from a memory leak in the ASHLAR coder (coders/ashlar.c) where WriteASHLARImage fails to release an allocated structure when an exception is thrown. Repeated processing of crafted images can exhaust process memory and degrade or crash services that convert or write to the ASHLAR format. No public exploit identified at time of analysis, and EPSS is very low (0.05%), but the CVSS:3.1 vector rates availability impact as High.

v2 Jun 23, 2026 - 18:48 cvss changed CVSS 7.5

Denial-of-service condition in ImageMagick versions prior to 7.1.2-15 stems from a memory leak in the ASHLAR encoder (coders/ashlar.c) where WriteASHLARImage fails to release an allocated structure on the exception path. Repeated invocation can exhaust process memory in long-running services that convert user-supplied images. No public exploit identified at time of analysis, EPSS sits at 0.05% (16th percentile), and the issue is not on the CISA KEV list.

v1 Mar 12, 2026 - 21:55 CVSS 5.3

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-15, a memory leak exists in coders/ashlar.c. [CVSS 5.3 MEDIUM]

RemediationAI

Vendor-released patch: ImageMagick 7.1.2-15, available via the upstream commit a253d1b124ebdcc2832daac6f9a35c362635b40e and the GHSA-xgm3-v4r9-wfgm advisory; .NET consumers should upgrade Magick.NET packages to 14.10.3 or later. SUSE users should apply SUSE-SU-2026:0851 and SUSE-SU-2026:0852 (https://www.suse.com/support/update/SUSE-SU-2026:0851/, https://www.suse.com/support/update/SUSE-SU-2026:0852/). Where patching must be delayed, disable the ASHLAR coder in policy.xml with a line such as <policy domain="coder" rights="none" pattern="ASHLAR" />, which removes the leaky write path at the cost of breaking any workflow that legitimately renders ASHLAR layouts, and constrain MAGICK_MEMORY_LIMIT plus per-process RLIMIT_AS so a leaking worker is recycled before exhausting host memory; long-running converters should additionally be configured to restart workers after a bounded number of requests.

Affected Packages

nuget magick.net-q16-anycpu fix: 14.10.3
nuget magick.net-q16-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-anycpu fix: 14.10.3
nuget magick.net-q16-hdri-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-hdri-openmp-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x64 fix: 14.10.3
nuget magick.net-q16-hdri-x86 fix: 14.10.3
nuget magick.net-q16-openmp-arm64 fix: 14.10.3
nuget magick.net-q16-openmp-x64 fix: 14.10.3
nuget magick.net-q16-openmp-x86 fix: 14.10.3
nuget magick.net-q16-x86 fix: 14.10.3
nuget magick.net-q8-anycpu fix: 14.10.3
nuget magick.net-q8-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-arm64 fix: 14.10.3
nuget magick.net-q8-openmp-x64 fix: 14.10.3
nuget magick.net-q8-x64 fix: 14.10.3
nuget magick.net-q8-x86 fix: 14.10.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ImageMagick is a widely used C library and suite of CLI tools for converting and manipulating images, frequently embedded in web stacks, content pipelines, and language bindings such as Magick.NET. The bug is a classic CWE-401 (Missing Release of Memory after Effective Lifetime): inside coders/ashlar.c, WriteASHLARImage allocates a tracking structure but the cleanup path is skipped when ThrowWriterException is invoked, so the allocation is orphaned on every failed write. The ASHLAR coder is a layout/binning writer that arranges multiple images, and exception paths are reachable through malformed inputs or resource-limit conditions during encoding. The advisory at GHSA-xgm3-v4r9-wfgm and commit a253d1b124ebdcc2832daac6f9a35c362635b40e address the bug by ensuring the structure is freed before throwing.

Know when Imagemagick gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 3.7 LOW

Remote input can reach the coder (AV:N, PR:N) but DoS requires repeatedly triggering an exception in ASHLAR write to accumulate a small per-call leak, so AC:H and A:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 5.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

8
Analysis Updated
Jun 23, 2026 - 18:50 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:49 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:48 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:48 vuln.today
v2 - CVSS changed
Severity Changed
Jun 23, 2026 - 18:22 NVD
MEDIUM HIGH
CVSS changed
Jun 23, 2026 - 18:22 NVD
5.3 (MEDIUM) 7.5 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Feb 24, 2026 - 02:16 nvd
MEDIUM 5.3

DescriptionNVD

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-15, a memory leak exists in coders/ashlar.c. The WriteASHLARImage allocates a structure. However, when an exception is thrown, the allocated memory is not properly released, resulting in a potential memory leak. Version 7.1.2-15 contains a patch.

Executive ViewAI

Why It Matters

ImageMagick prior to version 7.1.2-15 contains a memory leak vulnerability triggered by specially crafted images that can cause denial-of-service and service downtime in production environments. Organizations processing untrusted images-particularly web applications and cloud-based image services-face operational continuity risks. Despite HIGH technical severity (CVSS 7.5), exploitation probability remains negligible at 0.05% EPSS, suggesting this is not currently under active attack.

Business Impact: Medium
Compensating Controls

Apply vendor patch to upgrade ImageMagick to version 7.1.2-15 or later. Interim mitigations if immediate patching is delayed: implement memory resource quotas and request timeouts for image processing operations; validate and restrict accepted image file formats.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Ubiquitous
ImageMagick is embedded in countless web stacks, distros, and image pipelines
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
Container suse/sl-micro/6.1/baremetal-os-container:2.2.1-7.41 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.62 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.65 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.54 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP6-LTSS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy