Description
The ReadTXTImage function in coders/txt.c in ImageMagick through 6.9.9-0 and 7.x through 7.0.6-1 allows remote attackers to cause a denial of service (infinite loop) via a crafted file, because the end-of-file condition is not considered.
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.7.4+dfsg-14 | — |
| Debian 13 | imagemagick | 8:6.9.7.4+dfsg-14 | — |
| Debian 12 | imagemagick | 8:6.9.7.4+dfsg-14 | — |
| Debian 9 | imagemagick | 8:6.9.7.4+dfsg-11+deb9u2 | DSA-4019-1 |
| Debian 8 | imagemagick | 8:6.8.9.9-5+deb8u16 | DLA-1785-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | imagemagick | 8:6.7.7.10-5+deb7u16 | DLA-1081-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 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 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Advisories 5
- DSA-4019-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1785-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1081-1 imagemagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:3388-1 Security update for ImageMagick SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0172 ImageMagick: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Aug 22, 2024
References
- https://github.com/ImageMagick/ImageMagick/commit/83e0f8ffd7eeb7661b0ff83257da23d24ca7f078
- https://bugs.debian.org/869210
- https://github.com/ImageMagick/ImageMagick/issues/591
- https://github.com/ImageMagick/ImageMagick/commit/a8f9c2aabed37cd6a728532d1aed13ae0f3dfd78
- DSA-4019 vendor-advisory
- [debian-lts-announce] 20190514 [SECURITY] [DLA 1785-1] imagemagick security update mailing-list