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.
Published: 2026-06-30
Score: 1.8 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


Wed, 01 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 30 Jun 2026 22:45:00 +0000

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


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-01T13:50:14.626Z

Reserved: 2026-06-20T21:16:53.711Z

Link: CVE-2026-56364

cve-icon Vulnrichment

Updated: 2026-07-01T13:50:05.850Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-06-30T22:08:37Z

Links: CVE-2026-56364 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T04:00:15Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime