Description
In ImageMagick before 6.9.8-8 and 7.x before 7.0.5-9, the ReadJP2Image function in coders/jp2.c does not properly validate the channel geometry, leading to a crash.
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-13 | — |
| Debian 13 | imagemagick | 8:6.9.7.4+dfsg-13 | — |
| Debian 12 | imagemagick | 8:6.9.7.4+dfsg-13 | — |
| 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 |
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 | 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 |
Advisories 5
- USN-3681-1 imagemagick vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- 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
- WID-SEC-2024-0172 ImageMagick: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Aug 22, 2024
- WID-SEC-2024-0171 ImageMagick: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 19, 2024
References
- https://github.com/ImageMagick/ImageMagick/commit/acee073df34aa4d491bf5cb74d3a15fc80f0a3aa
- USN-3681-1 vendor-advisory
- GLSA-201711-07 vendor-advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869830
- DSA-4019 vendor-advisory
- https://github.com/ImageMagick/ImageMagick/issues/501
- [debian-lts-announce] 20190514 [SECURITY] [DLA 1785-1] imagemagick security update mailing-list
- https://github.com/ImageMagick/ImageMagick/commit/f13c6b54a879aaa771ec64b5a066b939e8f8e7f0