CVE-2026-140370: ImageMagick before 7.1.2-36 Heap Buffer Overflow in MAC Decoder
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap-based buffer overflow in the MAC image decoder, which writes past the end of a heap buffer when a specific decoding failure occurs. Attackers can supply a crafted MAC image to corrupt heap memory, causing a crash or other memory corruption.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected?
ImageMagick 6.x releases before 6.9.13-61 and 7.x releases before 7.1.2-36 are affected when processing MAC image files.
What does an attacker need to exploit this issue?
An attacker needs to supply a crafted MAC image that triggers the specific decoding failure. No privileges or user interaction are required according to the provided vector, although exploitation has high attack complexity.
What is the likely impact?
The crafted image can cause a heap buffer overflow, leading to a crash or other heap-memory corruption. The reported impact is limited to integrity and availability; no confidentiality impact is listed.
How can I determine whether I am exposed?
Identify ImageMagick instances that accept or process untrusted image files, then check whether they may decode MAC images and whether their version is earlier than 6.9.13-61 on the 6.x branch or 7.1.2-36 on the 7.x branch.