CVE-2026-140368: ImageMagick before 7.1.2-36 Heap Buffer Overflow When Encoding 12-Bit Images
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in encoders that export pixels for 12-bit images before encoding the image data. Attackers can supply a crafted image that, when processed and encoded, triggers an out-of-bounds heap write, causing crashes or memory corruption.
Affected Software
Event History
Frequently Asked Questions
Which ImageMagick versions need to be remediated?
ImageMagick versions before 6.9.13-61 and 7.x versions before 7.1.2-36 are affected. Updating to 6.9.13-61 or later in the 6.x line, or 7.1.2-36 or later in the 7.x line, addresses the affected ranges.
Under what conditions can the issue be triggered?
An attacker must provide a crafted 12-bit image and have it processed and encoded by an affected ImageMagick installation. The overflow occurs in encoders while exporting pixels before image data is encoded.
What is the likely impact of successful exploitation?
The out-of-bounds heap write can cause application crashes or memory corruption. The supplied severity information rates the issue low, with local attack vector, high attack complexity, no privileges required, and user interaction required.