Description
In ImageMagick 7.0.6-6 and GraphicsMagick 1.3.26, a heap-based buffer over-read was found in the function SFWScan in coders/sfw.c, which allows attackers to cause a denial of service via a crafted file.
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.3.26-19 | — |
| Debian 14 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 13 | graphicsmagick | 1.3.26-19 | — |
| Debian 13 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 12 | graphicsmagick | 1.3.26-19 | — |
| Debian 12 | imagemagick | 8:6.9.9.34+dfsg-3 | — |
| Debian 9 | graphicsmagick | 1.3.30+hg15796-1~deb9u1 | DSA-4321-1 |
| Debian 9 | imagemagick | 8:6.9.7.4+dfsg-11+deb9u3 | DSA-4032-1 |
| Debian 8 | graphicsmagick | 1.3.20-3+deb8u3 | DLA-1401-1 |
| Debian 8 | imagemagick | 8:6.8.9.9-5+deb8u11 | DSA-4040-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | graphicsmagick | 1.3.16-1.1+deb7u15 | DLA-1170-1 |
| Debian 7 | imagemagick | 8:6.7.7.10-5+deb7u16 | DLA-1081-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.2 | USN-3681-1 |
| Ubuntu 16.04 LTS | graphicsmagick | 1.3.23-1ubuntu0.3 | USN-4222-1 |
| Ubuntu 16.04 LTS | imagemagick | 8:6.8.9.9-7ubuntu5.11 | USN-3681-1 |
| Ubuntu 14.04 LTS | imagemagick | 8:6.7.7.10-6ubuntu3.11 | USN-3681-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | graphicsmagick | 1.3.18-1ubuntu3.1+esm3 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES 12 SP2 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES 11 SP4 | GraphicsMagick | 1.2.5-4.78.19.1 | SUSE-SU-2017:3435-1 |
| SLES 11 SP4 | ImageMagick | 6.4.3.6-7.78.14.1 | SUSE-SU-2017:3378-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Studio Onsite 1.3 | GraphicsMagick | 1.2.5-4.78.19.1 | SUSE-SU-2017:3435-1 |
| SLES for SAP 12 SP3 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES for SAP 12 SP2 | ImageMagick | 6.8.8.1-71.17.1 | SUSE-SU-2017:3388-1 |
| SLES for SAP 11 SP4 | ImageMagick | 6.4.3.6-7.78.14.1 | SUSE-SU-2017:3378-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.23 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.22 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.21 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.20 | graphicsmagick | 1.3.27-r0 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.18 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.17 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.16 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.15 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.14 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.13 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.12 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.11 | graphicsmagick | 1.3.27-r0 | — |
| Alpine v3.10 | graphicsmagick | 1.3.27-r0 | — |
Advisories 12
- USN-4222-1 graphicsmagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-3681-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4321-1 graphicsmagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4040-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4032-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1081-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1401-1 graphicsmagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1170-1 graphicsmagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:3378-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3388-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3435-1 Security update for GraphicsMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0171 ImageMagick: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 19, 2024
References
- DSA-4040 vendor-advisory
- USN-3681-1 vendor-advisory
- GLSA-201711-07 vendor-advisory
- [debian-lts-announce] 20171114 [SECURITY] [DLA 1170-1] graphicsmagick security update mailing-list
- DSA-4321 vendor-advisory
- 100476 vdb-entry
- DSA-4032 vendor-advisory
- [debian-lts-announce] 20180627 [SECURITY] [DLA 1401-1] graphicsmagick security update mailing-list
- https://github.com/ImageMagick/ImageMagick/issues/670
- http://hg.code.sf.net/p/graphicsmagick/code/rev/1b47e0078e05
- USN-4222-1 vendor-advisory