Description
ImageMagick is an open source software suite for displaying, converting, and editing raster image files. In ImageMagick versions prior to 7.1.2-7 and 6.9.13-32, an integer overflow vulnerability exists in the BMP decoder on 32-bit systems. The vulnerability occurs in coders/bmp.c when calculating the extent value by multiplying image columns by bits per pixel. On 32-bit systems with size_t of 4 bytes, a malicious BMP file with specific dimensions can cause this multiplication to overflow and wrap to zero. The overflow check added to address CVE-2025-57803 is placed after the overflow occurs, making it ineffective. A specially crafted 58-byte BMP file with width set to 536,870,912 and 32 bits per pixel can trigger this overflow, causing the bytes_per_line calculation to become zero. This vulnerability only affects 32-bit builds of ImageMagick where default resource limits for width, height, and area have been manually increased beyond their defaults. 64-bit systems with size_t of 8 bytes are not vulnerable, and systems using default ImageMagick resource limits are not vulnerable. The vulnerability is fixed in versions 7.1.2-7 and 6.9.13-32.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ImageMagick | ImageMagick | < 6.9.13-32, >= 7.0.0-0, < 7.1.2-7 | — |
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:7.1.2.7+dfsg1-1 | — |
| Debian 13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u3 | — |
| Debian 12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u5 | — |
| Debian 11 | imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u7 | DLA-4339-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | imagemagick | 8:7.1.2.8+dfsg1-1 | — |
| Ubuntu 25.10 | imagemagick | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | imagemagick | 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4 | USN-7876-1 |
| Ubuntu Pro 22.04 LTS | imagemagick | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5 | USN-7876-1 |
| Ubuntu Pro 20.04 LTS | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5 | USN-7876-1 |
| Ubuntu Pro 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.15+esm7 | USN-7876-1 |
| Ubuntu Pro 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.16+esm15 | USN-7876-1 |
| Ubuntu Pro 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.13+esm16 | USN-7876-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 ELS | ImageMagick +5 | 6.9.10.68-10.el7_9 | RHSA-2026:3058 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | ImageMagick | 7.1.0.9-150400.6.46.1 | SUSE-SU-2025:3867-1, SUSE-SU-2025:3796-1 |
| SLES 15 SP6 | ImageMagick | 7.1.0.9-150400.6.46.1 | SUSE-SU-2025:3844-1, SUSE-SU-2025:3796-1 |
| SLES 12 SP5 | ImageMagick | 6.8.8.1-71.215.1 | SUSE-SU-2025:3918-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | ImageMagick | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
| SLES 16.0 | ImageMagick | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ImageMagick | 7.1.2.7-1.1 | openSUSE-SU-2025:15650-1 |
| openSUSE Leap 16.0 | ImageMagick | 7.1.2.0-160000.4.1 | openSUSE-SU-2025:20162-1 |
| openSUSE Leap 15.6 | ImageMagick | 7.1.1.21-150600.3.26.1 | SUSE-SU-2025:3844-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | imagemagick | 7.1.2.8-r0 | — |
| Alpine v3.23 | imagemagick | 7.1.2.8-r0 | — |
| Alpine v3.22 | imagemagick | 7.1.2.8-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | ImageMagick +5 | 6.9.10.68-7.0.5.el7_9 | ELSA-2026-3058 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | Magick.NET-Q16-AnyCPU | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
| NuGet | Magick.NET-Q16-HDRI-x86 | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
| NuGet | Magick.NET-Q16-x86 | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
| NuGet | Magick.NET-Q8-AnyCPU | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
| NuGet | Magick.NET-Q8-x86 | < 14.9.0 | 14.9.0 | GHSA-9pp9-cfwx-54rm |
Advisories 12
- RHSA-2026:3058 Red Hat Security Advisory: ImageMagick security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- USN-7876-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- WID-SEC-2025-2339 ImageMagick (BMP decoder): Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Jun 7, 2026
- openSUSE-SU-2025:20162-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15650-1 ImageMagick-7.1.2.7-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:3844-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:21211-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:3867-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Mar 23, 2026
- ELSA-2026-3058 Important: ImageMagick security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 10, 2026
- SUSE-SU-2025:3796-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:3918-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Nov 4, 2025
- DLA-4339-1 imagemagick - security update Debian Security (DSA / DLA) · Oct 19, 2025