NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🛡️
Not in CISA KEV
MEDIUM severity

CVE-2026-140370 — ImageMagick

MEDIUM

CVE-2026-140370 is a medium-severity (CVSS 4.8) CWE-122 vulnerability in ImageMagick ImageMagick. A fix is available — see the affected versions and patch details below.

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…

Published
Updated
Affected
2 products
Patched
See advisory
Exploits
None indexed
Exploitation data as of Dec 1, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Description

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 Products

2 products · 2 configurations
Application
ImageMagickImageMagick
< 7.1.2-36
1 version
7.0.0
Application
ImageMagickImageMagick
< 6.9.13-61
1 version
0

Detection & mitigation playbook

Vendor / appliance
  1. Detect

    Inventory every ImageMagick ImageMagick deployment and check each version against the affected-products list above.

  2. Fix

    Apply the ImageMagick ImageMagick security patch or hotfix for CVE-2026-140370 on the affected version, following the vendor advisory for your exact build.

  3. Workarounds

    Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.

Frequently Asked Questions

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.
O3 Security · Runtime Protection

Is CVE-2026-140370 being exploited in your environment?

Detect and block the exploit chain at execution, on systems you cannot patch yet.

CVE-2026-140370: ImageMagick (Medium 4.8)