ImageMagick: Multiple buffer overflows — GLSA 200705-13

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

Affected packages

media-gfx/imagemagick on all architectures
Affected versions < 6.3.3
Unaffected versions >= 6.3.3

Background

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

Description

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

Impact

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.

Workaround

There is no known workaround at this time.

Resolution

All ImageMagick users should upgrade to the latest version:

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

References

Release date
May 10, 2007

Latest revision
June 07, 2007: 02

Severity
normal

Exploitable
remote

Bugzilla entries