Skip to main content

ImageMagick CVE-2026-56364

| EUVDEUVD-2026-40447 LOW
Memory Leak (CWE-401)
2026-06-30 VulnCheck GHSA-9gjp-pj3g-87pq
1.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Gain local write access to OpenCL cache directory
  2. Delivery
    Craft malformed XML with unclosed device elements
  3. Exploit
    Place file in ImageMagick cache path
  4. Execution
    Trigger ImageMagick operation loading OpenCL profile
  5. Persist
    Memory leak exhausts heap
  6. Impact
    ImageMagick process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires three concurrent conditions, all of which must be satisfied simultaneously. First, the attacker must have write access to the OpenCL cache directory used by ImageMagick - this is the definitive prerequisite and the primary barrier (reflected in PR:H and AT:P in the CVSS 4.0 vector). Second, ImageMagick must be built with OpenCL support enabled and the OpenCL subsystem must be active at runtime; environments built with --without-opencl are not affected. Third, attack complexity is rated High (AC:H), meaning the attacker must craft a specifically malformed XML file with unclosed device elements to trigger the unfreed allocation path. Exploitation is not possible remotely - only local filesystem access to the cache path enables the attack (AV:L). There is no authentication bypass or privilege escalation; the attacker must already possess write permissions to the target directory, which in practice means a pre-existing local foothold or insider access.

Impact

The CVSS 4.0 score of 1.8 is consistent with the attack profile and accurately reflects minimal real-world risk. The vector AV:L/AC:H/AT:P/PR:H encodes three hard prerequisites simultaneously: local access, high attack complexity, physical/local presence requirement, and high privilege level (write access to the OpenCL cache directory). EPSS data is not provided, but given the extremely constrained attack surface, real-world exploitation probability is low. There is no KEV listing and no POC code identified. The impact is strictly availability-limited (VA:L), with zero confidentiality or integrity consequence. This is a low-priority hardening item rather than an emergency response situation. The primary realistic concern is insider threat or a scenario where an attacker has already achieved local foothold with sufficient privilege - at which point this DoS is a far lesser concern than their existing access. CVSS 3.1 equivalent signals the same: AC:H/PR:H with A:L is a low-severity, locally-constrained issue.

Exploit ScenarioDerived

A local attacker who has gained write access to the OpenCL cache directory - perhaps through a misconfigured shared-hosting environment, a co-located container with a mounted cache volume, or a partially-compromised local account - places a crafted XML file containing malformed, unclosed OpenCL device elements. When ImageMagick subsequently performs any operation that loads the OpenCL benchmark profile, the memory leak is triggered; if the attacker can force repeated reloads (e.g., via a script that invokes ImageMagick in a loop), heap exhaustion causes the ImageMagick process or the hosting application (e.g., a PHP image-processing pipeline) to terminate. No public POC exists as of this analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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

AnalysisAIv1 – Jun 30, 2026

Memory exhaustion denial of service in ImageMagick before 7.1.2-13 allows a local attacker with write access to the OpenCL cache directory to crash the application by placing malformed XML files that trigger an unpatched memory leak in LoadOpenCLDeviceBenchmark(). The root cause is CWE-401: memory allocated during XML parsing of unclosed device elements is never freed, enabling a resource exhaustion attack. No public exploit code has been identified and exploitation has not been confirmed by CISA KEV; however, a patch commit and upstream advisory are available.

RemediationAI

Upgrade ImageMagick to version 7.1.2-13 or later, which incorporates the fix from upstream commit a52c1b402be08ef8ae193f28ac5b2e120f2fa26f (https://github.com/ImageMagick/ImageMagick/commit/a52c1b402be08ef8ae193f28ac5b2e120f2fa26f). The GitHub security advisory is at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qp59-x883-77qv. If upgrading immediately is not feasible, restrict write permissions on the OpenCL cache directory (typically ~/.cache/ImageMagick or the system-level equivalent) to only the owning service account - this eliminates the attacker's ability to place a malicious XML file and fully neutralizes the attack vector. Disabling OpenCL support at build or configuration time (--without-opencl or equivalent) also removes this code path entirely, though it trades GPU acceleration for this mitigation. Neither workaround has meaningful side effects beyond the described trade-offs.

Affected VersionsENISA

ImageMagick 0 <7.1.2-13

Affected Packages

nuget magick.net-q16-anycpu fix: 14.10.2
nuget magick.net-q16-arm64 fix: 14.10.2
nuget magick.net-q16-hdri-anycpu fix: 14.10.2
nuget magick.net-q16-hdri-arm64 fix: 14.10.2
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.10.2
nuget magick.net-q16-hdri-openmp-x64 fix: 14.10.2
nuget magick.net-q16-hdri-x64 fix: 14.10.2
nuget magick.net-q16-hdri-x86 fix: 14.10.2
nuget magick.net-q16-openmp-arm64 fix: 14.10.2
nuget magick.net-q16-openmp-x64 fix: 14.10.2
nuget magick.net-q16-openmp-x86 fix: 14.10.2
nuget magick.net-q16-x64 fix: 14.10.2
nuget magick.net-q16-x86 fix: 14.10.2
nuget magick.net-q8-anycpu fix: 14.10.2
nuget magick.net-q8-arm64 fix: 14.10.2
nuget magick.net-q8-openmp-arm64 fix: 14.10.2
nuget magick.net-q8-openmp-x64 fix: 14.10.2
nuget magick.net-q8-x64 fix: 14.10.2
nuget magick.net-q8-x86 fix: 14.10.2
euvd imagemagick fix: 7.1.2-13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 20 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:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*) uses OpenCL to accelerate image processing on GPU-capable systems. On startup or during certain operations, it reads OpenCL device benchmark profiles from an XML file stored in a user-writable or system-level cache directory. The C function LoadOpenCLDeviceBenchmark() parses this XML and allocates memory for device descriptors. CWE-401 (Missing Release of Memory after Effective Lifetime) manifests here: when the parser encounters a device element that is not properly closed, the allocated memory for that element is never freed. Repeated triggering of this path - e.g., by repeatedly invoking operations that reload the cache - causes the process heap to grow unbounded, eventually leading to OOM conditions and process termination.

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 (VulnCheck) PRIMARY 1.8 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 1.9 LOW

Local-only attack (AV:L), write access to cache directory required (PR:H), crafted XML needed (AC:H); only low availability impact, no C or I.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

ImageMagick before 7.1.2-13 contains a memory leak vulnerability in LoadOpenCLDeviceBenchmark() function when parsing malformed OpenCL device profile XML files with unclosed device elements. Attackers with write access to the OpenCL cache directory can place malicious XML files to exhaust memory and cause denial of service.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
widely-used open-source image processing library across web stacks
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

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

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