CVE-2026-140359: ImageMagick before 7.1.2-36 Heap Buffer Overflow via ShearRotateImage

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 ShearRotateImage method, where a specific argument causes a write beyond the bounds of a heap buffer. Attackers able to pass a crafted argument to ShearRotateImage, which is only reachable through the API, can corrupt heap memory and crash the application.

Affected Software

1 affected component
ImageMagick ImageMagick<6.9.13-61, <7.1.2-36

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 6.9.13-61
  2. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 7.1.2-36

Event History

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

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The vulnerable code is reachable only through the ImageMagick API. Applications that call ShearRotateImage and allow an attacker to influence its argument are the relevant exposure; the provided information does not indicate that ordinary command-line use is affected.

2

What does an attacker need to exploit it?

An attacker must be able to pass a specifically crafted argument to ShearRotateImage through an application using the API. Exploitation can corrupt heap memory and crash the application.

3

Which versions need to be updated?

Update ImageMagick 6.x to 6.9.13-61 or later, or ImageMagick 7.x to 7.1.2-36 or later. Versions before those releases are affected.

4

How can I assess whether my application is affected?

Check both the installed ImageMagick version and whether the application invokes ShearRotateImage through the API. If the version is below the fixed release and untrusted input can reach that method's argument, the application is affected.

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