Skip to main content

ImageMagick CVE-2026-25968

CRITICAL
Stack-based Buffer Overflow (CWE-121)
2026-02-24 security-advisories@github.com GHSA-3mwp-xqp2-q6ph
Critical
Disputed · 9.8 NVD
View

Attack ChainAIDerived

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

  1. Recon
    Identify service processing user images via ImageMagick
  2. Delivery
    Craft MSL document with oversized attribute
  3. Exploit
    Submit file to upload or conversion endpoint
  4. Install
    msl.c overflows fixed stack buffer
  5. C2
    Overwrite saved return address
  6. Execute
    Hijack control flow to shellcode
  7. Impact
    Execute code as conversion worker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the target to invoke ImageMagick on attacker-controlled input that is processed by the MSL coder in coders/msl.c - practically, either an explicitly MSL-typed input (msl:file, .msl extension) or a pipeline that allows the MSL coder to be selected. Limiting factors: ImageMagick's default policy.xml on many modern distributions already disables MSL (along with EPHEMERAL, URL, HTTPS, MVG, TEXT), so vulnerable services are typically those that accept MSL scripts deliberately, run with a permissive policy, or use older Magick.NET embeddings without policy restrictions. Successful code execution further depends on the target build lacking stack canaries/ASLR; otherwise the most likely outcome is a denial-of-service crash. No authentication is required at the ImageMagick layer (PR:N), but the wrapping application's auth and upload controls gate access.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects the maximum theoretical impact of unauthenticated remote code execution, but this score requires a service to actually accept and parse MSL content from untrusted sources, which is uncommon - most ImageMagick deployments only process image formats and have policy.xml restrictions that disable MSL. EPSS is very low at 0.06% (17th percentile), the issue is not in CISA KEV, and no public exploit identified at time of analysis, suggesting real-world exploitation pressure is currently low. The conflict between the high CVSS and the low EPSS/no-KEV signal is best explained by the niche attack surface: where MSL is exposed (legacy media pipelines, third-party document processors), this is a serious unauthenticated RCE; where ImageMagick's default 'MSL' policy coder is disabled, the practical reachability is near zero. Stack-based overflows on modern Linux distros are also typically mitigated by stack canaries and ASLR, raising AC in practice, though the vendor still treats it as critical-severity.

Exploit ScenarioDerived

An attacker uploads a crafted .msl file (or a file with embedded MSL) to a web application that processes user-supplied content through ImageMagick - for example a thumbnail generator, document converter, or avatar service. When ImageMagick's msl.c parses the oversized attribute, the stack buffer overflows, corrupting saved return addresses and potentially yielding arbitrary code execution in the context of the conversion process. No public exploit identified at time of analysis, but the AddressSanitizer trace in the GHSA advisory provides a concrete crash reproducer that researchers can build on.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 23, 2026

Stack buffer overflow in ImageMagick's MSL (Magick Scripting Language) parser allows remote attackers to corrupt memory and potentially execute arbitrary code by supplying an MSL document with an oversized attribute value processed by msl.c. All ImageMagick versions prior to 7.1.2-15 and 6.9.13-40 are affected, as well as Magick.NET bindings below 14.10.3. No public exploit identified at time of analysis and EPSS is very low (0.06%, 17th percentile), but the CVSS 9.8 reflects the worst-case unauthenticated RCE potential against any service that parses attacker-controlled MSL input.

Earlier versions of this analysis (2)
v2 Jun 23, 2026 - 18:33 cvss changed CVSS 9.8

Stack buffer overflow in ImageMagick's MSL (Magick Scripting Language) parser allows attackers to corrupt memory by supplying an overly long attribute value in msl.c, affecting all versions prior to 7.1.2-15 and 6.9.13-40. The CVSS 9.8 rating reflects network-reachable, unauthenticated exploitation potential, though EPSS is very low at 0.06% (17th percentile) and there is no public exploit identified at time of analysis. The flaw is patched upstream and downstream (SUSE), and also affects the Magick.NET .NET bindings below 14.10.3.

v1 Mar 12, 2026 - 21:55 CVSS 7.4

High severity vulnerability in ImageMagick. A stack buffer overflow occurs when processing the an attribute in msl.c. A long value overflows a fixed-size stack buffer, leading to memory corruption.

RemediationAI

Vendor-released patch: upgrade ImageMagick to 7.1.2-15 or 6.9.13-40, and Magick.NET to 14.10.3, per GHSA-3mwp-xqp2-q6ph (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3mwp-xqp2-q6ph). On SUSE systems apply SUSE-SU-2026:0851 and SUSE-SU-2026:0852. If patching is delayed, disable the MSL coder by adding <policy domain="coder" rights="none" pattern="MSL" /> (and ideally <policy domain="coder" rights="none" pattern="EPHEMERAL,URL,HTTPS,MVG,MSL,TEXT,SHOW,WIN,PLT" />) to /etc/ImageMagick-*/policy.xml - this blocks the vulnerable code path with no impact on standard image format processing for the vast majority of workloads, though any pipeline that legitimately uses MSL scripting will break. Additionally restrict ImageMagick processing to trusted input only and run conversion workers under a sandboxed, low-privilege account (e.g. systemd seccomp, AppArmor, or a container with no network egress) to contain successful exploitation.

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-x64 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 19 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 deployed image-processing library and toolset used by web stacks, document converters, and CI pipelines. The flaw lives in coders/msl.c, the handler for ImageMagick's MSL (Magick Scripting Language) XML-style scripting format, where an attribute value is copied into a fixed-size stack buffer without proper length validation. This is a classic CWE-121 Stack-based Buffer Overflow: a long attribute string overflows the stack frame, as confirmed by the AddressSanitizer trace in the advisory showing a 1-byte WRITE past a stack buffer at 0x7ffdb8c76984. Memory corruption on the stack can overwrite saved return addresses or adjacent locals, which on unhardened builds is a known path to arbitrary code execution. The affected CPE (cpe:2.3:a:imagemagick:imagemagick) and the Magick.NET NuGet packages share the same native code path.

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

Sources disagree (Medium–Critical)
NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Network-reachable via uploaded MSL input with no auth (AV:N/PR:N/UI:N), but exploitation depends on MSL coder being enabled and bypassing stack canaries/ASLR, so AC:H.

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

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorNVD

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

Lifecycle Timeline

6
Analysis Updated
Jun 23, 2026 - 18:34 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:33 vuln.today
v2 - CVSS changed
Severity Changed
Jun 23, 2026 - 18:22 NVD
HIGH CRITICAL
CVSS changed
Jun 23, 2026 - 18:22 NVD
7.4 (HIGH) 9.8 (CRITICAL)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Feb 24, 2026 - 02:16 nvd
HIGH 7.4

DescriptionNVD

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a stack buffer overflow occurs when processing the an attribute in msl.c. A long value overflows a fixed-size stack buffer, leading to memory corruption. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Executive ViewAI

Why It Matters

ImageMagick and Magick.NET contain a critical stack buffer overflow in the MSL (Magick Scripting Language) parser that enables unauthenticated remote code execution against services processing untrusted image documents. While the CVSS score of 9.8 reflects worst-case severity, actual business risk is significantly lower: the 0.1% EPSS score indicates exploitation is extremely unlikely, and no public exploit has been identified.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Prevalence
Ubiquitous
ImageMagick ships in nearly all Linux distributions and most image-processing web stacks
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Low

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Affected Products (CPE)NVD

cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
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: High
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