Description
Heap-based buffer overflow in the libMagick component of ImageMagick 6.0.6.2 might allow attackers to execute arbitrary code via an image index array that triggers the overflow during filename glob expansion by the ExpandFilenames function.
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.2.4.5-0.6 | — |
| Debian 13 | imagemagick | 6:6.2.4.5-0.6 | — |
| Debian 12 | imagemagick | 6:6.2.4.5-0.6 | — |
| Debian 3.1 | imagemagick | 6:6.0.6.2-2.7 | DSA-1168-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | ImageMagick +4 | 6.0.7.1-16.0.3 | RHSA-2007:0015 |
| RHEL 3 | ImageMagick +4 | 5.5.6-24 | RHSA-2007:0015 |
| RHEL 2 | ImageMagick +4 | 5.3.8-18 | RHSA-2007:0015 |
Advisories 2
- RHSA-2007:0015 Red Hat Security Advisory: ImageMagick security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1168-1 imagemagick Debian Security (DSA / DLA) · Mar 9, 2026
References
- oval:org.mitre.oval:def:9481 vdb-entry signature
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345595
- DSA-1168 vendor-advisory
- 24284 third-party-advisory
- 21719 third-party-advisory
- RHSA-2007:0015 vendor-advisory
- 24186 third-party-advisory