<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200611-19">
  <title>ImageMagick: PALM and DCM buffer overflows</title>
  <synopsis>
    ImageMagick improperly handles PALM and DCM images, potentially resulting
    in the execution of arbitrary code.
  </synopsis>
  <product type="ebuild">imagemagick</product>
  <announced>2006-11-24</announced>
  <revised count="01">2006-11-24</revised>
  <bug>152672</bug>
  <access>remote</access>
  <affected>
    <package name="media-gfx/imagemagick" auto="yes" arch="*">
      <unaffected range="ge">6.3.0.5</unaffected>
      <vulnerable range="lt">6.3.0.5</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    ImageMagick is a software suite to create, edit, and compose bitmap
    images, that can also read, write, and convert images in many other
    formats.
    </p>
  </background>
  <description>
    <p>
    M. Joonas Pihlaja has reported that a boundary error exists within the
    ReadDCMImage() function of coders/dcm.c, causing the improper handling
    of DCM images. Pihlaja also reported that there are several boundary
    errors in the ReadPALMImage() function of coders/palm.c, similarly
    causing the improper handling of PALM images.
    </p>
  </description>
  <impact type="normal">
    <p>
    An attacker could entice a user to open a specially crafted DCM or PALM
    image with ImageMagick, and possibly execute arbitrary code with the
    privileges of the user running ImageMagick.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All ImageMagick users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=media-gfx/imagemagick-6.3.0.5"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-5456">CVE-2006-5456</uri>
  </references>
  <metadata tag="requester" timestamp="2006-11-21T07:20:25Z">
    jaervosz
  </metadata>
  <metadata tag="submitter" timestamp="2006-11-22T15:07:36Z">
    shellsage
  </metadata>
  <metadata tag="bugReady" timestamp="2006-11-24T19:28:35Z">
    jaervosz
  </metadata>
</glsa>
