# CVE-2026-140368: ImageMagick before 7.1.2-36 Heap Buffer Overflow When Encoding 12-Bit Images

- Severity: Low 2.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/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:50.482Z
- Modified: 2026-12-01T15:18:00.057Z
- Weaknesses: CWE-787
- Assigned by: VulnCheck

## Description

ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in encoders that export pixels for 12-bit images before encoding the image data. Attackers can supply a crafted image that, when processed and encoded, triggers an out-of-bounds heap write, causing crashes or 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 2.0 Low `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cf7p-m88c-h9jh> (vendor-advisory)
- <https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-heap-buffer-overflow-when-encoding-12-bit-images> (third-party-advisory)

## Sources

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

---

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