Description
Format string vulnerability in the SetImageInfo function in image.c for ImageMagick before 6.0.2.5 may allow remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via format string specifiers in a filename argument to convert, which may be called by other web applications.
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.1.7-1 | — |
| Debian 14 | imagemagick | 6:6.0.6.2-2.2 | — |
| Debian 13 | graphicsmagick | 1.1.7-1 | — |
| Debian 13 | imagemagick | 6:6.0.6.2-2.2 | — |
| Debian 12 | graphicsmagick | 1.1.7-1 | — |
| Debian 12 | imagemagick | 6:6.0.6.2-2.2 | — |
| Debian 3.0 | imagemagick | 4:5.4.4.5-1woody6 | DSA-702-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | ImageMagick +4 | 6.0.7.1-10 | RHSA-2005:320 |
| RHEL 3 | ImageMagick +4 | 5.5.6-13 | RHSA-2005:070 |
Advisories 3
- RHSA-2005:320 Red Hat Security Advisory: ImageMagick security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:070 Red Hat Security Advisory: ImageMagick security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-702-1 imagemagick - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- 20050303 [USN-90-1] Imagemagick vulnerability mailing-list
- imagemagick-filename-format-string(19586) vdb-entry
- http://bugs.gentoo.org/show_bug.cgi?id=83542
- SUSE-SA:2005:017 vendor-advisory
- RHSA-2005:320 vendor-advisory
- GLSA-200503-11 vendor-advisory
- DSA-702 vendor-advisory
- oval:org.mitre.oval:def:10302 vdb-entry signature
- RHSA-2005:070 vendor-advisory