ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-13 and 6.9.13-38, a heap buffer overflow vulnerability in the XBM image decoder (ReadXBMImage) allows an attacker to write controlled data past the allocated heap buffer when processing a maliciously crafted image file. Any operation that reads or identifies an image can trigger the overflow, making it exploitable via common image upload and processing pipelines. Versions 7.1.2-13 and 6.9.13-38 fix the issue.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Imagemagick | Imagemagick | * | 6.9.13-38 (excluding) |
| Imagemagick | Imagemagick | 7.0.0-0 (including) | 7.1.2-13 (excluding) |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | RedHat | ImageMagick-0:6.9.10.68-10.el7_9 | * |
| Imagemagick | Ubuntu | esm-apps/focal | * |
| Imagemagick | Ubuntu | esm-apps/jammy | * |
| Imagemagick | Ubuntu | esm-apps/noble | * |
| Imagemagick | Ubuntu | esm-infra-legacy/trusty | * |
| Imagemagick | Ubuntu | esm-infra/bionic | * |
| Imagemagick | Ubuntu | esm-infra/xenial | * |
| Imagemagick | Ubuntu | jammy | * |
| Imagemagick | Ubuntu | noble | * |
| Imagemagick | Ubuntu | questing | * |
| Imagemagick | Ubuntu | upstream | * |