Executive brief
ImageMagick is a widely used open-source tool for editing and converting digital images. A flaw in how it handles specific compressed image files could allow a specially crafted image to crash the application. This could lead to a denial-of-service, interrupting automated image processing workflows or individual user tasks.
Technical details
An out-of-bounds write vulnerability exists in the ImageMagick MIFF encoder when processing images using LZMA compression. The root cause is a missing check during buffer size calculation (CWE-131) and an unchecked return value (CWE-252), which can lead to a heap-based buffer overwrite. An attacker can exploit this by providing a maliciously crafted image file to be processed by the library. Successful exploitation requires local access and user interaction (opening the file) and primarily results in a crash (denial of service). The vulnerability is addressed in ImageMagick versions 6.9.13-48 and 7.1.2-23.
Affected products
- ImageMagick ImageMagick < 6.9.13-48, < 7.1.2-23
Timeline
- 2026-05-17: advisory: GitHub Security Advisory published
- 2026-06-10: disclosed: CVE published to NVD