Description
The AcquireMagickMemory function in MagickCore/memory.c in ImageMagick before 7.0.3.3 allows remote attackers to have unspecified impact via a crafted image, which triggers a memory allocation failure.
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.6.6+dfsg-1 | — |
| Debian 13 | imagemagick | 8:6.9.6.6+dfsg-1 | — |
| Debian 12 | imagemagick | 8:6.9.6.6+dfsg-1 | — |
| Debian 8 | imagemagick | 8:6.8.9.9-5+deb8u6 | DSA-3726-1 |
| Debian 7 | imagemagick | 8:6.7.7.10-5+deb7u10 | DLA-756-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.3 | USN-3142-1 |
| Ubuntu 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.3 | USN-3142-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | ImageMagick | 6.8.8.1-47.1 | SUSE-SU-2016:2952-1 |
| SLES 12 SP1 | ImageMagick | 6.8.8.1-47.1 | SUSE-SU-2016:2952-1 |
| SLES 11 SP4 | GraphicsMagick | 1.2.5-4.52.1 | SUSE-SU-2016:2894-1 |
| SLES 11 SP4 | ImageMagick | 6.4.3.6-7.54.1 | SUSE-SU-2016:2964-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Studio Onsite 1.3 | GraphicsMagick | 1.2.5-4.52.1 | SUSE-SU-2016:2894-1 |
| SLES for SAP 12 SP2 | ImageMagick | 6.8.8.1-47.1 | SUSE-SU-2016:2952-1 |
| SLES for SAP 12 SP1 | ImageMagick | 6.8.8.1-47.1 | SUSE-SU-2016:2952-1 |
| SLES for SAP 11 SP4 | ImageMagick | 6.4.3.6-7.54.1 | SUSE-SU-2016:2964-1 |
Advisories 6
- USN-3142-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-756-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3726-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:2894-1 Security update for GraphicsMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2964-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2952-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [oss-security] 20161020 imagemagick: memory allocation failure in AcquireMagickMemory (memory.c) (incomplete fix for CVE-2016-8862) mailing-list
- https://blogs.gentoo.org/ago/2016/10/17/imagemagick-memory-allocation-failure-in-acquiremagickmemory-memory-c/
- https://bugzilla.redhat.com/show_bug.cgi?id=1387135
- https://github.com/ImageMagick/ImageMagick/issues/271
- 93794 vdb-entry
- [oss-security] 20161020 Re: imagemagick: memory allocation failure in AcquireMagickMemory (memory.c) mailing-list
- DSA-3726 vendor-advisory