Description
In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.
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 | graphicsmagick | 1.4~hg15873-1 | — |
| Debian 13 | graphicsmagick | 1.4~hg15873-1 | — |
| Debian 12 | graphicsmagick | 1.4~hg15873-1 | — |
| Debian 8 | graphicsmagick | 1.3.20-3+deb8u5 | DLA-1619-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | graphicsmagick | 1.4+really1.3.35-1ubuntu0.1 | USN-5974-1 |
| Ubuntu 18.04 LTS | graphicsmagick | 1.3.28-2ubuntu0.1 | USN-4207-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | graphicsmagick | 1.3.28-2ubuntu0.2+esm1 | USN-5974-1 |
| Ubuntu Pro 16.04 LTS | graphicsmagick | 1.3.23-1ubuntu0.6+esm2 | USN-5974-1 |
| Ubuntu Pro 14.04 LTS | graphicsmagick | 1.3.18-1ubuntu3.1+esm8 | USN-5974-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 | GraphicsMagick | 1.3.29-bp150.2.12.1 | openSUSE-SU-2019:0003-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.23 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.22 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.21 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.20 | graphicsmagick | 1.3.32-r0 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.18 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.17 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.16 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.15 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.14 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.13 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.12 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.11 | graphicsmagick | 1.3.32-r0 | — |
| Alpine v3.10 | graphicsmagick | 1.3.32-r0 | — |
Advisories 5
- USN-5974-1 graphicsmagick vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-4207-1 graphicsmagick vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-1619-1 graphicsmagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2019:0003-1 Security update for GraphicsMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0767 GraphicsMagick: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Mar 27, 2023
References
- 106227 vdb-entry
- https://sourceforge.net/p/graphicsmagick/bugs/585/
- http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/648e2b406589
- [debian-lts-announce] 20181227 [SECURITY] [DLA 1619-1] graphicsmagick security update mailing-list
- USN-4207-1 vendor-advisory
- DSA-4640 vendor-advisory