Description
Use-after-free vulnerability in the DestroyImage function in image.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denial of service via a crafted file.
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+deb9u4 | DSA-4074-1 |
| Debian 8 | imagemagick | 8:6.8.9.9-5+deb8u11 | DSA-4040-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+deb7u16 | DLA-1081-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 |
Advisories 4
- USN-3681-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4040-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4074-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1081-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20170816 imagemagick: use-after-free in DestroyImage (image.c) mailing-list
- DSA-4040 vendor-advisory
- https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890
- USN-3681-1 vendor-advisory
- GLSA-201711-07 vendor-advisory
- DSA-4074 vendor-advisory
- https://blogs.gentoo.org/ago/2017/08/10/imagemagick-use-after-free-in-destroyimage-image-c/