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

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T14:29:48.083Z
- Modified: 2026-12-01T15:18:00.433Z
- Weaknesses: CWE-122
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- ImageMagick ImageMagick: from 7.0.0 before 7.1.2-36; before 6.9.13-61 (not affected: 7.1.2-36; 6.9.13-61)

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8c8r-vjh3-j578> (vendor-advisory)
- <https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-heap-buffer-overflow-in-mac-decoder> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-140370](https://www.cve.org/CVERecord?id=CVE-2026-140370), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-140370](https://nvd.nist.gov/vuln/detail/CVE-2026-140370), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140370 · Whole record: https://cve.day/CVE-2026-140370.json · Rebuilt by cve.day 2026-12-01T15:32:19.605Z
