Multiple integer overflows have been discovered in ImageMagick allowing for the execution of arbitrary code.
Package | media-gfx/imagemagick on all architectures |
---|---|
Affected versions | < 6.3.3 |
Unaffected versions | >= 6.3.3 |
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.
There is no known workaround at this time.
All ImageMagick users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=media-gfx/imagemagick-6.3.3"