GHSA-QP59-X883-77QV

Leaking Bytes in the Fast Lane: ImageMagick OpenCL DoS

Alon Barad
Alon Barad
Software Engineer

Jan 21, 2026·4 min read·8 visits

Executive Summary (TL;DR)

ImageMagick's `opencl.c` fails to properly free allocated string members within a struct when parsing malformed OpenCL device profile XMLs. While the struct container is freed, the internal pointers remain allocated, leading to a memory leak. Repeated triggering can cause Denial of Service (DoS) via OOM.

A memory leak vulnerability in ImageMagick's OpenCL device benchmark loader allows attackers to exhaust system resources via malformed XML profiles.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Affected Systems

ImageMagick 7.1.2-12 and earlierMagick.NET prior to 14.10.2

Affected Versions Detail

Product
Affected Versions
Fixed Version
ImageMagick
ImageMagick Studio LLC
<= 7.1.2-127.1.2-13
Magick.NET
dlemstra
< 14.10.214.10.2
AttributeDetail
CWE IDCWE-401 (Memory Leak)
Attack VectorLocal / Network (File Context)
CVSS6.5 (Medium)
ImpactDenial of Service (DoS)
ComponentOpenCL Device Benchmark Loader
Exploit StatusPoC Available
CWE-401
Memory Leak

Missing Release of Memory after Effective Lifetime

Vulnerability Timeline

Vulnerability Published
2026-01-21
Patch Released in 7.1.2-13
2026-01-21

Subscribe to updates

Get the latest CVE analysis reports delivered to your inbox.