Description
In GraphicsMagick 1.4 snapshot-20181209 Q8, there is a heap-based buffer overflow in the WriteTGAImage function of tga.c, which allows attackers to cause a denial of service via a crafted image file, because the number of rows or columns can exceed the pixel-dimension restrictions of the TGA specification.
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 |
|---|---|---|---|
| SLES 11 SP4 | GraphicsMagick | 1.2.5-78.78.1 | SUSE-SU-2019:13923-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Studio Onsite 1.3 | GraphicsMagick | 1.2.5-78.78.1 | SUSE-SU-2019:13923-1 |
| SUSE Package Hub 15 | GraphicsMagick | 1.3.29-bp150.2.12.1 | openSUSE-SU-2019:0003-1 |
Advisories 6
- 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
- SUSE-SU-2019:13923-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
- 106229 vdb-entry
- http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/15d1b5fd003b
- [debian-lts-announce] 20181227 [SECURITY] [DLA 1619-1] graphicsmagick security update mailing-list
- https://sourceforge.net/p/graphicsmagick/bugs/583/
- USN-4207-1 vendor-advisory
- DSA-4640 vendor-advisory