Description
in SetImageExtent() of /MagickCore/image.c, an incorrect image depth size can cause a memory leak because the code which checks for the proper image depth size does not reset the size in the event there is an invalid size. The patch resets the depth to a proper size before throwing an exception. The memory leak can be triggered by a crafted input file that is processed by ImageMagick and could cause an impact to application reliability, such as denial of service. This flaw affects ImageMagick versions prior to 7.0.9-0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ImageMagick | prior to 7.0.9-0 | — |
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.11.24+dfsg-1 | — |
| Debian 13 | imagemagick | 8:6.9.11.24+dfsg-1 | — |
| Debian 12 | imagemagick | 8:6.9.11.24+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | USN-4988-1 |
| Ubuntu 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.11 | USN-4988-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.16+esm11 | USN-7068-1 |
| Ubuntu Pro 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.13+esm11 | USN-7068-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | ImageMagick | 7.0.7.34-10.9.1 | SUSE-SU-2021:0153-1 |
| SLES 15 SP1 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SLES 15 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SLES 12 SP5 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES 12 SP4 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
Show 23 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES 12 SP2 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES 11 SP4 | ImageMagick | 6.4.3.6-78.135.1 | SUSE-SU-2021:14598-1 |
| SLES for SAP 15 SP1 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SLES for SAP 15 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SLES for SAP 12 SP5 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES for SAP 12 SP4 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES for SAP 12 SP3 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLES for SAP 12 SP2 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SLE HPC 15 SP1 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SLE HPC 15 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SUSE OpenStack Cloud Crowbar 9 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE OpenStack Cloud Crowbar 8 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE OpenStack Cloud 9 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE OpenStack Cloud 8 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE OpenStack Cloud 7 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE Manager Server 4.0 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SUSE Manager Retail Branch Server 4.0 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SUSE Manager Proxy 4.0 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | ImageMagick | 6.4.3.6-78.135.1 | SUSE-SU-2021:14598-1 |
| SUSE HPE Helion OpenStack 8 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
| SUSE Enterprise Storage 6 | ImageMagick | 7.0.7.34-3.90.1 | SUSE-SU-2021:0156-1 |
| SUSE Enterprise Storage 5 | ImageMagick | 6.8.8.1-71.154.1 | SUSE-SU-2021:0199-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ImageMagick | 7.1.0.9-1.1 | openSUSE-SU-2024:11564-1 |
| openSUSE Leap 15.2 | ImageMagick | 7.0.7.34-lp152.12.9.1 | openSUSE-SU-2021:0136-1 |
| openSUSE Leap 15.1 | ImageMagick | 7.0.7.34-lp151.7.26.1 | openSUSE-SU-2021:0148-1 |
Advisories 10
- USN-7068-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-4988-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2021:14598-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0148-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0153-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11564-1 ImageMagick-7.1.0.9-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0156-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0136-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0199-1 Security update for ImageMagick SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-0622 ImageMagick: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Oct 14, 2024