Description
Heap-based buffer overflow in psd.c for ImageMagick 6.1.0, 6.1.7, and possibly earlier versions allows remote attackers to execute arbitrary code via a .PSD image file with a large number of layers.
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 | 6:6.0.6.2-2.1 | — |
| Debian 13 | imagemagick | 6:6.0.6.2-2.1 | — |
| Debian 12 | imagemagick | 6:6.0.6.2-2.1 | — |
| Debian 3.0 | imagemagick | 4:5.4.4.5-1woody5 | DSA-646-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | ImageMagick +4 | 6.0.7.1-6 | RHSA-2005:071 |
| RHEL 3 | ImageMagick +4 | 5.5.6-13 | RHSA-2005:070 |
Advisories 3
- RHSA-2005:071 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-646-1 imagemagick - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- oval:org.mitre.oval:def:9925 vdb-entry signature
- DSA-646 vendor-advisory
- GLSA-200501-37 vendor-advisory
- 20050118 [USN-62-1] imagemagick vulnerability mailing-list
- 20050117 Multiple Vendor ImageMagick .psd Image File Decode Heap Overflow Vulnerability third-party-advisory
- RHSA-2005:071 vendor-advisory
- RHSA-2005:070 vendor-advisory