Description
ImageMagick before 7.1.2-33 and 6.9.13-58 contains a heap buffer underwrite vulnerability in DecodeImage() in coders/pict.c on 32-bit builds due to pointer arithmetic overflow. Attackers can supply a crafted PICT file with maximized row, column and bytes-per-line values to bypass bounds checks and write up to 128 controlled bytes below the heap buffer, causing crashes or code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ImageMagick | ImageMagick | 7.0.0-0 – < 7.1.2-33, < 6.9.13-58 | 7.1.2-33 |
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.33+dfsg1-1 | — |
| Debian 13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u14 | — |
| Debian 12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u15 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | imagemagick | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 24.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 22.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 20.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 18.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 16.04 LTS | imagemagick | No fix yet | — |
| Ubuntu Pro 14.04 LTS | imagemagick | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | GraphicsMagick | 1.3.42-150600.3.51.1 | SUSE-SU-2026:5095-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | GraphicsMagick | 1.3.49-1.1 | openSUSE-SU-2026:12189-1 |
| openSUSE Tumbleweed | ImageMagick | 7.1.2.34-1.1 | openSUSE-SU-2026:12170-1 |
| openSUSE Leap 16.0 | GraphicsMagick | 1.3.45-160000.14.1 | openSUSE-SU-2026:22239-1 |
Advisories 5
- WID-SEC-2026-3867 ImageMagick: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- openSUSE-SU-2026:22239-1 Security update for GraphicsMagick SUSE / openSUSE Security Updates · Nov 11, 2026
- SUSE-SU-2026:5095-1 Security update for GraphicsMagick SUSE / openSUSE Security Updates · Nov 4, 2026
- openSUSE-SU-2026:12189-1 GraphicsMagick-1.3.49-1.1 on GA media SUSE / openSUSE Security Updates · Oct 21, 2026
- openSUSE-SU-2026:12170-1 ImageMagick-7.1.2.34-1.1 on GA media SUSE / openSUSE Security Updates · Oct 19, 2026
References
- GitHub Security Advisory (GHSA-mqmp-r5jh-jx7w) vendor-advisory
- https://github.com/ImageMagick/ImageMagick/commit/63dde0cf281383ab69432b88305f7dcd6a8ce900 patch
- https://github.com/ImageMagick/ImageMagick6/commit/c18c5d5fb7f1d87ddbe0a02e9d1207c89b24588c patch
- https://github.com/ImageMagick/ImageMagick/blob/7.1.2-32/coders/pict.c#L503-L540 technical-description
- https://github.com/ImageMagick/ImageMagick product
- VulnCheck Advisory: ImageMagick before 7.1.2-33 and 6.9.13-58 Heap Buffer Underwrite in PICT Decoder third-party-advisory