Gentoo Logo

ImageMagick: Multiple buffer overflows


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200705-13 / imagemagick
Release Date May 10, 2007
Latest Revision June 07, 2007: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-gfx/imagemagick < 6.3.3 >= 6.3.3 All supported architectures

Related bugreports: #152672, #159567, #173186


Multiple integer overflows have been discovered in ImageMagick allowing for the execution of arbitrary code.

2.  Impact Information


ImageMagick is a collection of tools allowing various manipulations on image files.


iDefense Labs has discovered multiple integer overflows in ImageMagick in the functions ReadDCMImage() and ReadXWDImage(), that are used to process DCM and XWD files.


An attacker could entice a user to open specially crafted XWD or DCM file, resulting in heap-based buffer overflows and possibly the execution of arbitrary code with the privileges of the user running ImageMagick. Note that this user may be httpd or any other account used by applications relying on the ImageMagick tools to automatically process images.

3.  Resolution Information


There is no known workaround at this time.


All ImageMagick users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-gfx/imagemagick-6.3.3"

4.  References


Page updated May 10, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.