Skip to main content

ImageMagick CVE-2026-40311

| EUVDEUVD-2026-22130 MEDIUM
Use After Free (CWE-416)
2026-04-13 GitHub_M GHSA-r83h-crwp-3vm7
5.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Craft image with invalid XMP profile
  2. Delivery
    Deliver file to target system or upload endpoint
  3. Exploit
    User or process opens image with vulnerable ImageMagick
  4. Execution
    GetXMPProperty() dereferences freed heap pointer
  5. Impact
    Process crashes, causing denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires that a crafted image file containing an invalid or malformed XMP metadata profile be processed by a vulnerable ImageMagick instance. The CVSS vector AV:L/UI:R confirms two concrete limiting factors: the attack is local (the crafted file must reach the system's filesystem or processing queue), and user or process interaction is required to trigger parsing (the image must be actively opened, converted, or inspected). No special configuration, non-default feature flags, or elevated privileges are needed - default XMP metadata parsing behavior is sufficient to trigger the flaw. Exploitation is bounded to denial of service (process crash); no conditions enabling code execution or data leakage have been identified from available data. The 'Automatable: no' SSVC determination confirms this cannot be triggered at scale via unauthenticated network scanning.

Impact

The CVSS 3.1 base score of 5.5 (Medium) is well-calibrated for this issue: AV:L limits exploitation to scenarios where a crafted file reaches the processing system, UI:R requires human or automated interaction to open the file, and the impact is confined to availability (A:H) with no confidentiality or integrity exposure. EPSS at 0.01% (3rd percentile) is among the lowest risk tiers and is consistent with SSVC's 'Exploitation: none' determination and 'Automatable: no' rating - this cannot be exploited by network scanners or bulk targeting. There is no CISA KEV listing and no identified public proof-of-concept. The use-after-free root cause (CWE-416) raises the theoretical ceiling - use-after-frees can sometimes be upgraded to code execution - but no such exploitation path has been demonstrated or inferred from available data. Real-world risk is highest for image processing pipelines that ingest untrusted user-supplied files (e.g., web upload services, batch converters), where a crash could cause availability disruption. For environments with controlled image inputs, operational priority is low.

Exploit ScenarioDerived

An attacker crafts an image file containing a structurally invalid XMP metadata profile and delivers it to a target user or automated image processing pipeline (for example, via a web file upload form or email attachment). When the image is processed by a vulnerable ImageMagick version, GetXMPProperty() accesses already-freed heap memory while iterating over XMP node values, causing a process crash and denial of service. No public proof-of-concept has been identified, and the local file delivery requirement prevents direct network-based exploitation without a separate upload or delivery mechanism.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Heap use-after-free in ImageMagick's XMP metadata parser crashes the process when reading a malformed or invalid XMP profile embedded in an image file. Both the primary 7.x branch (below 7.1.2-19) and the legacy 6.x branch (below 6.9.13-44) are affected, along with Magick.NET bindings below 14.12.0. Impact is limited to denial of service via process crash - no confidentiality or integrity impact has been identified - and no public exploit or KEV listing exists, with EPSS at 0.01% (3rd percentile) confirming very low exploitation probability.

RemediationAI

Upgrade ImageMagick to version 7.1.2-19 or later (https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19) for the 7.x branch, or to 6.9.13-44 or later for legacy 6.x deployments; the fix is implemented in commit 5facfecf1abb3fed46a08f614dcc43d1e548e20d. Magick.NET users should upgrade to version 14.12.0 or later (https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). For environments where patching is not immediately feasible, consider stripping XMP metadata from image files before they reach ImageMagick using an independently patched tool such as ExifTool (note: this adds pipeline complexity and may remove legitimate metadata). Running ImageMagick within a sandboxed process (e.g., a container with resource limits, or with seccomp/AppArmor profiles) limits the impact of a crash to the sandboxed unit rather than the broader service. Restricting accepted image formats to those that do not embed XMP - where operationally viable - eliminates the vulnerable code path but trades off format support.

Affected VersionsENISA

ImageMagick < 7.1.2-19
ImageMagick < 6.9.13-44

Affected Packages

nuget magick.net-q16-anycpu fix: 14.12.0
nuget magick.net-q16-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-x64 fix: 14.12.0
nuget magick.net-q16-hdri-x86 fix: 14.12.0
nuget magick.net-q16-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-openmp-x64 fix: 14.12.0
nuget magick.net-q16-x64 fix: 14.12.0
nuget magick.net-q16-x86 fix: 14.12.0
nuget magick.net-q8-anycpu fix: 14.12.0
nuget magick.net-q8-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-arm64 fix: 14.12.0
nuget magick.net-q8-x64 fix: 14.12.0
nuget magick.net-q8-x86 fix: 14.12.0
euvd imagemagick fix: 6.9.13-44, 7.1.2-19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 17 packages in nuget, euvd

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

Technical ContextAI · show details

The vulnerability resides in MagickCore/property.c within the GetXMPProperty() function. When ImageMagick processes an XMP (Extensible Metadata Platform) profile - an XML-based metadata standard embedded in image formats such as JPEG, PNG, and TIFF - it iterates over XML tree nodes, constructs namespace-prefixed property strings, and inserts them into a splay tree. In vulnerable versions, the xmp_namespace pointer was passed to AddValueToSplayTree() and then referenced again during value printing after the underlying memory could be reclaimed, triggering a CWE-416 heap use-after-free. The published commit diff (5facfecf1abb3fed46a08f614dcc43d1e548e20d) confirms the fix: the property string is now constructed, validated for format correctness (checking for namespace suffix ':*'), added to the splay tree as an independent copy via ConstantString(), and then explicitly destroyed with DestroyString() - eliminating the dangling reference. Affected CPE is cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* covering all platform variants.

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

GitHub Advisory PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

AV:L/UI:R because exploitation requires delivering a crafted image file for local processing; PR:N since no system privileges are needed; A:H for crash; C:N/I:N as only availability is impacted.

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

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 14, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 21:36 nvd
MEDIUM 5.5

DescriptionGitHub Advisory

ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profile. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Prevalence
High
widely deployed open-source image processing library across Linux, CMS, and pipeline environments
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-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

CVE-2026-23876 CRITICAL POC
9.8 Jan 20

Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 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 Module for Package Hub 15 SP7 Fixed

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