Gentoo: ImageMagick PSD decoding heap overflow
Posted by Joseph Shakespeare   
Gentoo ImageMagick is vulnerable to a heap overflow when decoding Photoshop Document (PSD) files, which could lead to arbitrary code execution.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200501-26
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: ImageMagick: PSD decoding heap overflow
      Date: January 20, 2005
      Bugs: #77932
        ID: 200501-26

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

ImageMagick is vulnerable to a heap overflow when decoding Photoshop
Document (PSD) files, which could lead to arbitrary code execution.

Background
==========

ImageMagick is a collection of tools to read, write and manipulate
images in many formats.

Affected packages
=================

    -------------------------------------------------------------------
     Package                /  Vulnerable  /                Unaffected
    -------------------------------------------------------------------
  1  media-gfx/imagemagick      < 6.1.8.8                   >= 6.1.8.8

Description
===========

Andrei Nigmatulin discovered that a Photoshop Document (PSD) file with
more than 24 layers could trigger a heap overflow.

Impact
======

An attacker could potentially design a mailicous PSD image file to
cause arbitrary code execution with the permissions of the user running
ImageMagick.

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.1.8.8"

References
==========

  [ 1 ] CAN-2005-0005
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0005
  [ 2 ] iDEFENSE Advisory
        http://www.idefense.com/application/poi/display?id=184&type=vulnerabilities

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200501-26.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2005 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0