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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-01 · Modified: 2026-12-03
- Aliases: DEBIAN-CVE-2026-140370, UBUNTU-CVE-2026-140370
- Record: https://cvemate.com/vulnerability/CVE-2026-140370 · JSON: https://cvemate.com/vulnerability/CVE-2026-140370/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.543%, percentile 47.082%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian imagemagick (Debian): All versions (No fix recorded)
- ubuntu imagemagick (Ubuntu): All versions (No fix recorded)
- imagemagick imagemagick: ≥ 7.0.0, \< 7.1.2-36 \| \< 6.9.13-61 \| ≥ 7.0.0-0, \< 7.1.2-36

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8c8r-vjh3-j578>
- <https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-heap-buffer-overflow-in-mac-decoder>
- <https://security-tracker.debian.org/tracker/CVE-2026-140370>
- <https://ubuntu.com/security/CVE-2026-140370>
- <https://www.cve.org/CVERecord?id=CVE-2026-140370>

---

Data as of 2026-12-05T09:32:05.731Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
