CVE-2026-140366: ImageMagick before 7.1.2-36 Heap Buffer Overflow via C++ readImages and montage

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 the C++ readImages and montage API that writes a single zero byte past the end of a heap buffer. Attackers able to call these C++ API functions can trigger the out-of-bounds write, corrupting heap memory and potentially crashing the application.

Affected Software

1 affected component
ImageMagick ImageMagick<6.9.13-61, <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 deployments are exposed?

Applications using ImageMagick's C++ readImages and montage API are exposed if they use a version before 6.9.13-61 or a 7.x version before 7.1.2-36. The provided information does not establish exposure for applications that do not call these C++ API functions.

2

What does an attacker need to do to trigger the issue?

An attacker needs to be able to cause the application to call the affected C++ readImages and montage functions. Exploitation requires local access, high attack complexity, and user interaction according to the supplied vector.

3

What is the expected impact?

The flaw writes one zero byte past the end of a heap buffer, which can corrupt heap memory and potentially crash the application. The supplied severity vector indicates availability impact only, with no stated confidentiality or integrity impact.

4

What versions address the issue?

Use ImageMagick 6.9.13-61 or later in the 6.x branch, or 7.1.2-36 or later in 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