CVE-2026-140370: ImageMagick before 7.1.2-36 Heap Buffer Overflow in MAC Decoder

Published Dec 1, 2026
·
Updated

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

1 affected component
ImageMagick ImageMagick<6.9.13-61, >=7.0.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
Data Sourced
via NVD·03:18 PM
DescriptionSeverityWeakness
Event
via NVD·03:18 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

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