Description
In coders/xbm.c in ImageMagick 7.0.6-1 Q16, a DoS in ReadXBMImage() due to lack of an EOF (End of File) check might cause huge CPU consumption. When a crafted XBM file, which claims large rows and columns fields in the header but does not contain sufficient backing data, is provided, the loop over the rows would consume huge CPU resources, since there is no EOF check inside the loop.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 13 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 12 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 9 | imagemagick | 8:6.9.7.4+dfsg-11+deb9u10 | DLA-2366-1 |
| Debian 8 | imagemagick | 8:6.8.9.9-5+deb8u16 | DLA-1785-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | imagemagick | 8:6.7.7.10-5+deb7u17 | DLA-1131-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.2 | USN-3681-1 |
| Ubuntu 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.11 | USN-3681-1 |
| Ubuntu 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.11 | USN-3681-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES 12 SP2 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES 11 SP4 | ImageMagick | 6.4.3.6-7.78.14.1 | SUSE-SU-2017:3378-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES for SAP 12 SP2 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES for SAP 11 SP4 | ImageMagick | 6.4.3.6-7.78.14.1 | SUSE-SU-2017:3378-1 |
Advisories 6
- USN-3681-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-1785-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2366-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1131-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:3378-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3388-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/ImageMagick/ImageMagick/issues/712
- USN-3681-1 vendor-advisory
- GLSA-201711-07 vendor-advisory
- [debian-lts-announce] 20190514 [SECURITY] [DLA 1785-1] imagemagick security update mailing-list
- [debian-lts-announce] 20200907 [SECURITY] [DLA 2366-1] imagemagick security update mailing-list
- https://github.com/ImageMagick/ImageMagick/commit/d9a8234d211da30baf9526fbebe9a8438ea7e11c