CVE-2026-140368: ImageMagick before 7.1.2-36 Heap Buffer Overflow When Encoding 12-Bit Images

Published Dec 1, 2026
·
Updated

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

1 affected component
ImageMagick ImageMagick<6.9.13-61, >=7.0.0<7.1.2-36

Event History

Dec 1, 2026
CVE Published
via MITRE·02:29 PM
Data Sourced
via MITRE·02:29 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203