CVE-2026-140368
LowCVSS 3.6Exploitation Probability (EPSS)
Low risk18th percentile - higher than 18% of all known CVEs
Summary
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.
Risk Assessment
Memory corruption can lead to application crashes and potentially code execution. This affects confidentiality, integrity, and availability of the system.
Recommendation
Update ImageMagick to version 6.9.13-61 or 7.1.2-36 (or later). Restrict processing of untrusted 12-bit images until the fix is applied.
Other vulnerabilities in ImageMagick
See all- CVE-2025-55298High
In ImageMagick prior to versions 6.9.13-28 and 7.1.2-2, a format string bug exists in the InterpretImageFilename function where user input is passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling attacks ranging from heap overflow to remote code execution.
- CVE-2023-34152Critical
A vulnerability was found in ImageMagick that leads to a remote code execution vulnerability in OpenBlob when the --enable-pipes option is configured.
- CVE-2018-15607Medium
In ImageMagick 7.0.8-11 Q16, a tiny input file 0x50 0x36 0x36 0x36 0x36 0x4c 0x36 0x38 0x36 0x36 0x36 0x36 0x36 0x36 0x1f 0x35 0x50 0x00 can result in a hang of several minutes during which CPU and memory resources are consumed until ultimately an attempted large memory allocation fails. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted file.
- CVE-2017-17499Critical
ImageMagick before 6.9.9-24 and 7.x before 7.0.7-12 has a use-after-free in Magick::Image::read in Magick++/lib/Image.cpp.
- CVE-2017-15032Critical
ImageMagick version 7.0.7-2 contains a memory leak in ReadYCBCRImage in coders/ycbcr.c.
- CVE-2017-14532Critical
ImageMagick version 7.0.7-0 has a NULL Pointer Dereference in TIFFIgnoreTags in coders/tiff.c.
- CVE-2017-14138Critical
ImageMagick version 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in certain error cases, as demonstrated by VP8 errors.
- CVE-2017-13139Critical
In ImageMagick before version 6.9.9-0 and 7.x before version 7.0.6-1, there is a vulnerability in the ReadOneMNGImage function in coders/png.c that leads to an out-of-bounds read with the MNG CLIP chunk.
- CVE-2016-7539High
A memory leak in AcquireVirtualMemory in ImageMagick before version 7 allows remote attackers to cause a denial of service (memory consumption) via unspecified vectors.
- CVE-2014-9826Critical
ImageMagick allows remote attackers to have unspecified impact via vectors related to error handling in sun files.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

