CVE-2026-23952
7.5
Phantom Pixels: Null Pointer Dereference in ImageMagick's MSL Parser
Amit Schendel
Senior Security ResearcherJan 21, 2026·5 min read·12 visits
PoC Available
Executive Summary (TL;DR)
ImageMagick's XML-based scripting language (MSL) attempts to modify image properties (like comments) even if no image has been loaded. This results in a classic NULL pointer dereference (CWE-476) and an immediate crash. Triggerable remotely if the victim processes untrusted MSL files.
A logic flaw in ImageMagick's MSL (Magick Scripting Language) parser allows for a Denial of Service via NULL pointer dereference. By supplying a malformed XML script that defines image attributes without an image, attackers can crash the process.
Official Patches
Fix Analysis (2)
Technical Appendix
CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HAffected Systems
ImageMagick 7.x < 7.1.2-13ImageMagick 6.x < 6.9.13-38Debian BullseyeDebian BookwormDebian Sid
Affected Versions Detail
| Product | Affected Versions | Fixed Version |
|---|---|---|
ImageMagick ImageMagick | < 7.1.2-13 | 7.1.2-13 |
ImageMagick ImageMagick | < 6.9.13-38 | 6.9.13-38 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-476 |
| Attack Vector | Network / Local (File Upload) |
| CVSS | 7.5 (High) |
| Impact | Denial of Service (DoS) |
| Vulnerability Type | NULL Pointer Dereference |
| Component | coders/msl.c (MSLEndElement) |
MITRE ATT&CK Mapping
CWE-476
NULL Pointer Dereference
A NULL pointer dereference occurs when the application attempts to use a pointer that has a value of NULL, causing a crash or exit.