CVE-2026-56364

ImageMagick - Memory Leak in LoadOpenCLDeviceBenchmark() via Malformed XML

Published Jun 30, 2026 CVSS 4.0 · 1.8 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ImageMagick prior to 7.1.2-13 has a memory leak in LoadOpenCLDeviceBenchmark() when it parses malformed OpenCL device profile XML files that lack a closing device element. The improper release of memory resources can cause the application to consume increasing amounts of RAM, eventually exhausting system memory and forcing the process to terminate or fail to start new operations, which manifests as a denial of service. This vulnerability falls under CWE‑401, a classic use‑after‑free or memory leak weakness.

Affected Systems

Any installation of ImageMagick that has not been upgraded beyond version 7.1.2‑13 is potentially vulnerable. The issue affects the core library across all platforms where ImageMagick is used to process OpenCL device profiles, regardless of operating system. Systems running or exposing ImageMagick with writeable OpenCL cache directories are required to apply the update or mitigation.

Risk and Exploitability

The exploitability of this flaw is limited to environments where an attacker can write files into the OpenCL cache directory. If such write access is granted, an attacker may place a crafted XML file that triggers the memory leak, leading to gradual depletion of available memory and a denial‑of‑service condition. The CVSS score of 1.8 indicates low technical severity, and no exploitation has been reported in the KEV catalog or via publicly available release channels. Nonetheless, because the attack requires local write privileges, the risk remains real for systems that expose the cache directory to untrusted users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to the latest release (7.1.2‑13 or newer) to remove the memory leak bug.
  • Restrict write permissions on the OpenCL cache directory to privileged users only, preventing unauthenticated or malicious file creation.
  • For environments that cannot immediately update, monitor memory consumption of ImageMagick processes and consider disabling or isolating the LoadOpenCLDeviceBenchmark() functionality if possible.

Generated by OpenCVE AI on June 30, 2026 at 23:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6383-1 imagemagick security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ImageMagick - Memory Leak in LoadOpenCLDeviceBenchmark() via Malformed XML
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-401
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 1.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 1.8, 'vector': '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'}

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 1, 2026, 1:50 PM
Reserved
Jun 20, 2026, 9:16 PM
Status
Analyzed
Published
Jun 30, 2026, 11:17 PM
Modified
Oct 25, 2026, 5:10 PM
Severity
Low
Public date
Jun 30, 2026, 10:08 PM