Description
An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ImageMagick | Fixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57 | — |
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.57+dfsg-1 | — |
| Debian 13 | imagemagick | 8:6.9.11.57+dfsg-1 | — |
| Debian 12 | imagemagick | 8:6.9.11.57+dfsg-1 | — |
| Debian 10 | imagemagick | 8:6.9.10.23+dfsg-2.1+deb10u2 | DLA-3357-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.9 | USN-6200-1 |
| Ubuntu 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.14 | USN-5736-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | imagemagick | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 | USN-6200-1, USN-5736-2 |
| Ubuntu Pro 20.04 LTS | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 | USN-5736-2 |
| Ubuntu Pro 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.15+esm1 | USN-6200-1 |
| Ubuntu Pro 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.16+esm5 | USN-6200-1, USN-5736-1 |
| Ubuntu Pro 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.13+esm3 | USN-5736-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | ImageMagick | 7.0.7.34-150200.10.36.1 | SUSE-SU-2022:3119-1 |
| SLES 15 SP1 | ImageMagick | 7.0.7.34-150000.3.123.1 | SUSE-SU-2023:4634-1 |
| SLES 12 SP5 | ImageMagick | 6.8.8.1-71.180.1 | SUSE-SU-2022:3138-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | ImageMagick | 7.0.7.34-150000.3.123.1 | SUSE-SU-2023:4634-1 |
| SLES for SAP 12 SP5 | ImageMagick | 6.8.8.1-71.180.1 | SUSE-SU-2022:3138-1 |
| SLE HPC 15 SP1 | ImageMagick | 7.0.7.34-150000.3.123.1 | SUSE-SU-2023:4634-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | ImageMagick | 7.0.7.34-150200.10.36.1 | SUSE-SU-2022:3119-1 |
| openSUSE Leap 15.3 | ImageMagick | 7.0.7.34-150200.10.36.1 | SUSE-SU-2022:3119-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.23 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.22 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.21 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.20 | imagemagick | 7.0.10.57-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.18 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.17 | imagemagick | 7.0.10.57-r0 | — |
| Alpine v3.16 | imagemagick | 7.0.10.57-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | ImageMagick +5 | 6.9.10.68-6.amzn2.0.3 | ALAS2-2023-1971 |
Advisories 9
- USN-5736-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-6200-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5736-2 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3357-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:3119-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4634-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3138-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1209 ImageMagick: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Aug 5, 2024
- ALAS2-2023-1971 Moderate: ImageMagick security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 7, 2023
References
- https://github.com/ImageMagick/ImageMagick/pull/3083
- https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6
- https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d
- [debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update mailing-list