Skip to main content

ImageMagick CVE-2026-53462

| EUVDEUVD-2026-36189 MEDIUM
Use After Free (CWE-416)
2026-06-10 GitHub_M GHSA-px7q-ggqj-hcf2
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted image to exposed endpoint
  2. Delivery
    Image routed to ImageMagick for processing
  3. Exploit
    CheckPrimitiveExtent triggers allocation failure
  4. Execution
    Dangling pointer accessed after free
  5. Impact
    Process crash causes 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 an attacker can supply a crafted image (or image-like input) that reaches the CheckPrimitiveExtent code path and forces a memory allocation failure within that function. This is a high-complexity condition (AC:H per CVSS) because the attacker must engineer specific input characteristics - such as extreme canvas dimensions, large number of drawing primitives, or other resource-intensive properties - that reliably exhaust the allocator at the right call site. No authentication is required (PR:N) and no user interaction beyond the service processing the image is needed (UI:N). Exploitation is limited to a denial-of-service outcome (process crash); there is no confirmed code execution or data disclosure path. Deployments that do not process untrusted external images, or that run ImageMagick in isolated sandboxes with automatic process restart, face materially reduced risk.

Impact

The NVD CVSS 3.1 base score of 5.9 (Medium) is driven by AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. The High attack complexity (AC:H) is the principal risk limiter: exploitation requires engineering a crafted image that triggers an allocation failure at precisely the right moment in CheckPrimitiveExtent, which is not a trivial race condition but does require specific input construction. The impact is strictly availability (A:H), with no confidentiality (C:N) or integrity (I:N) consequences confirmed - this aligns with the crash-only behavior described. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, and no public proof-of-concept exploit has been identified at time of analysis, making this a lower operational priority than a KEV-listed or POC-confirmed issue. For deployments that expose ImageMagick to untrusted user-supplied images (e.g., SaaS upload endpoints, media converters), the risk is meaningfully elevated because an attacker can repeatedly submit malformed images to cause repeated service crashes. For internal or authenticated processing pipelines, the real-world risk is substantially lower.

Exploit ScenarioDerived

An attacker submits a specially crafted image file - sized or structured to exhaust available allocations during CheckPrimitiveExtent processing - to a publicly accessible ImageMagick-backed service such as a web application's thumbnail generator or document converter. The allocation failure triggers the use-after-free, crashing the ImageMagick worker process and causing a denial of service; if the service does not restart workers automatically, this results in sustained outage. No public proof-of-concept code has been identified at time of analysis, but the technique of crafting images to force allocation failures is well understood in the security research community.

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 – Jun 10, 2026

Heap-use-after-free in ImageMagick's CheckPrimitiveExtent function allows remote attackers to crash the image processing service by supplying crafted input that triggers a memory allocation failure, resulting in a denial-of-service condition. Affected are all releases of the 6.x branch prior to 6.9.13-50 and all 7.x releases prior to 7.1.2-25. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog; however, the network-accessible attack vector is relevant wherever ImageMagick processes untrusted images (e.g., web upload pipelines, CI/CD asset processors).

RemediationAI

The vendor-released patch is available in ImageMagick versions 6.9.13-50 (legacy 6.x branch) and 7.1.2-25 (current 7.x branch). Operators should upgrade to one of these versions as the primary remediation; the fix addresses the missing null-check or error-handling guard after the failed allocation in CheckPrimitiveExtent. Full advisory details are at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-px7q-ggqj-hcf2. If immediate upgrade is not possible, the most effective compensating control is to restrict which users or services can submit images to ImageMagick-backed endpoints - moving untrusted input processing behind authentication reduces the attacker-accessible attack surface. Additionally, enforcing per-request resource limits via ImageMagick's policy.xml (e.g., capping memory allocation with '<policy domain="resource" name="memory" value="256MiB"/>') can reduce the likelihood of triggering allocation failure conditions, though this is not a complete fix and carries the trade-off of rejecting legitimately large images.

Affected VersionsENISA

ImageMagick < 7.1.2-25
ImageMagick < 6.9.13-50

Affected Packages

nuget magick.net-q16-anycpu fix: 14.14.0
nuget magick.net-q16-arm64 fix: 14.14.0
nuget magick.net-q16-hdri-anycpu fix: 14.14.0
nuget magick.net-q16-hdri-arm64 fix: 14.14.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.14.0
nuget magick.net-q16-hdri-x64 fix: 14.14.0
nuget magick.net-q16-hdri-x86 fix: 14.14.0
nuget magick.net-q16-openmp-arm64 fix: 14.14.0
nuget magick.net-q16-openmp-x64 fix: 14.14.0
nuget magick.net-q16-x64 fix: 14.14.0
nuget magick.net-q16-x86 fix: 14.14.0
nuget magick.net-q8-anycpu fix: 14.14.0
nuget magick.net-q8-arm64 fix: 14.14.0
nuget magick.net-q8-openmp-arm64 fix: 14.14.0
nuget magick.net-q8-openmp-x64 fix: 14.14.0
nuget magick.net-q8-x64 fix: 14.14.0
nuget magick.net-q8-x86 fix: 14.14.0
euvd imagemagick fix: 6.9.13-50, 7.1.2-25

Source: OSV (Open Source Vulnerabilities)

Affects your stack

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

ImageMagick (CPE: cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*) is a widely deployed open-source image manipulation library used in countless web applications, content management systems, and automated pipelines. The vulnerable code path resides in CheckPrimitiveExtent, a function responsible for validating or extending memory buffers used during primitive drawing or rendering operations. CWE-416 (Use After Free) is the root cause: when an internal memory allocation call inside CheckPrimitiveExtent fails - for example, due to resource exhaustion or an exceptionally large image operand - error-handling logic does not properly guard subsequent accesses, leaving a dangling pointer to freed heap memory. A subsequent read or write through that pointer causes undefined behavior, manifesting as a process crash. This class of bug is particularly dangerous in image-processing code because image dimensions, palette sizes, and drawing primitives are attacker-controlled inputs that can be tuned to force allocation failures deterministically.

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

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

AV:N reflects network-accessible image intake; AC:H because triggering an allocation failure at the specific CheckPrimitiveExtent site requires crafted input; impact is availability-only with no confidentiality or integrity consequence.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Jun 26, 2026 - 18:02 EUVD

DescriptionCVE.org

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-50 and 7.1.2-25, when an allocation fails in CheckPrimitiveExtent this can result in a heap-use-after-free and result in a crash. This issue has been patched in versions 6.9.13-50 and 7.1.2-25.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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 Yes
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
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
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-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: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected

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