Description
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
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 | 7:6.2.4.5.dfsg1-2 | — |
| Debian 13 | imagemagick | 7:6.2.4.5.dfsg1-2 | — |
| Debian 12 | imagemagick | 7:6.2.4.5.dfsg1-2 | — |
| Debian 5.0 | imagemagick | 7:6.2.4.5.dfsg1-1+lenny1 | DTSA-63-1, DSA-1858-1 |
| Debian 4.0 | imagemagick | 7:6.2.4.5.dfsg1-0.15+etch1 | DSA-1858-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ImageMagick | 7.1.0.8-1.2 | openSUSE-SU-2024:10597-1 |
Advisories 3
- DSA-1858-1 imagemagick - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DTSA-63-1 imagemagick - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10597-1 ImageMagick-7.1.0.8-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 27364 third-party-advisory
- 20071112 FLEA-2007-0066-1 ImageMagick mailing-list
- USN-523-1 vendor-advisory
- 27309 third-party-advisory
- 25766 vdb-entry
- http://www.imagemagick.org/script/changelog.php
- imagemagick-readblogstring-bo(36739) vdb-entry
- ADV-2007-3245 vdb-entry
- GLSA-200710-27 vendor-advisory
- 1018729 vdb-entry
- 27048 third-party-advisory
- 28721 third-party-advisory
- 27439 third-party-advisory
- https://issues.rpath.com/browse/RPL-1743
- DSA-1858 vendor-advisory
- [Magick-announce] 20070917 ImageMagick 6.3.5-9, important security updates mailing-list
- 26926 third-party-advisory
- MDVSA-2008:035 vendor-advisory
- 20070919 Multiple Vendor ImageMagick Off-By-One Vulnerability third-party-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=186030
- SUSE-SR:2007:023 vendor-advisory
- 36260 third-party-advisory