<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: ImageMagick security and bug fix update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2012:0545</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2012-05-07T18:14:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2012-05-07T18:14:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2012-05-07T18:14:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1478</Engine>
      <Date>2012-05-07T18:44:01Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated ImageMagick packages that fix three security issues and one bug are
now available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
ImageMagick is an image display and manipulation tool for the X Window
System that can read and write multiple image formats.

A flaw was found in the way ImageMagick processed images with malformed
Exchangeable image file format (Exif) metadata. An attacker could create a
specially-crafted image file that, when opened by a victim, would cause
ImageMagick to crash or, potentially, execute arbitrary code.
(CVE-2012-0247)

A denial of service flaw was found in the way ImageMagick processed images
with malformed Exif metadata. An attacker could create a specially-crafted
image file that, when opened by a victim, could cause ImageMagick to enter
an infinite loop. (CVE-2012-0248)

A denial of service flaw was found in the way ImageMagick decoded certain
JPEG images. A remote attacker could provide a JPEG image with
specially-crafted sequences of RST0 up to RST7 restart markers (used to
indicate the input stream to be corrupted), which once processed by
ImageMagick, would cause it to consume excessive amounts of memory and CPU
time. (CVE-2012-0260)

Red Hat would like to thank CERT-FI for reporting CVE-2012-0260. CERT-FI
acknowledges Aleksis Kauppinen, Joonas Kuorilehto, Tuomas Parttimaa and
Lasse Ylivainio of Codenomicon's CROSS project as the original reporters.

This update also fixes the following bug:

* The fix for Red Hat Bugzilla bug 694922, provided by the RHSA-2012:0301
ImageMagick update, introduced a regression. Attempting to use the
&quot;convert&quot; utility to convert a PostScript document could fail with a
&quot;/undefinedfilename&quot; error. With this update, conversion works as expected.
(BZ#804546)

Users of ImageMagick are advised to upgrade to these updated packages,
which contain backported patches to correct these issues. All running
instances of ImageMagick must be restarted for this update to take effect.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Moderate</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2012-0545.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-0545.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#moderate</URL>
       <Description>https://access.redhat.com/security/updates/classification/#moderate</Description>
    </Reference>
    <Reference>
       <URL>https://rhn.redhat.com/errata/RHSA-2012-0301.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-0301.html</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Red Hat Enterprise Linux">
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux Desktop (v. 5 client)">
        <FullProductName ProductID="5Client-5.8.Z">Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="Red Hat Enterprise Linux (v. 5 server)">
        <FullProductName ProductID="5Server-5.8.Z">Red Hat Enterprise Linux (v. 5 server)</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="RHEL Desktop Workstation (v. 5 client)">
        <FullProductName ProductID="5Client-Workstation-5.8.Z">RHEL Desktop Workstation (v. 5 client)</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="ImageMagick-6.2.8.0-15.el5_8">
      <FullProductName ProductID="ImageMagick-6.2.8.0-15.el5_8">ImageMagick-6.2.8.0-15.el5_8.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="ImageMagick-6.2.8.0-15.el5_8" RelationType="Default Component Of" RelatesToProductReference="5Client-5.8.Z">
      <FullProductName ProductID="5Client-5.8.Z:ImageMagick-6.2.8.0-15.el5_8">ImageMagick-6.2.8.0-15.el5_8 as a component of Red Hat Enterprise Linux Desktop (v. 5 client)</FullProductName>
    </Relationship>
    <Relationship ProductReference="ImageMagick-6.2.8.0-15.el5_8" RelationType="Default Component Of" RelatesToProductReference="5Server-5.8.Z">
      <FullProductName ProductID="5Server-5.8.Z:ImageMagick-6.2.8.0-15.el5_8">ImageMagick-6.2.8.0-15.el5_8 as a component of Red Hat Enterprise Linux (v. 5 server)</FullProductName>
    </Relationship>
    <Relationship ProductReference="ImageMagick-6.2.8.0-15.el5_8" RelationType="Default Component Of" RelatesToProductReference="5Client-Workstation-5.8.Z">
      <FullProductName ProductID="5Client-Workstation-5.8.Z:ImageMagick-6.2.8.0-15.el5_8">ImageMagick-6.2.8.0-15.el5_8 as a component of RHEL Desktop Workstation (v. 5 client)</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the way ImageMagick processed images with malformed Exchangeable image file format (Exif) metadata. An attacker could create a specially-crafted image file that, when opened by a victim, would cause ImageMagick to crash or, potentially, execute arbitrary code. </Note></Notes>
    <DiscoveryDate>2012-02-08T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-02-03T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0247</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Client-Workstation-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Server-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>6.8</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-0545.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0247.html</URL>
        <Description>CVE-2012-0247</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A denial of service flaw was found in the way ImageMagick processed images with malformed Exif metadata. An attacker could create a specially-crafted image file that, when opened by a victim, could cause ImageMagick to enter an infinite loop. </Note></Notes>
    <DiscoveryDate>2012-02-08T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-02-03T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0248</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Client-Workstation-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Server-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>6.8</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-0545.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0248.html</URL>
        <Description>CVE-2012-0248</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=789443</URL>
        <Description>bz#789443: CVE-2012-0247 CVE-2012-0248 ImageMagick: invalid validation of images denial of service</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="3" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A denial of service flaw was found in the way ImageMagick decoded certain JPEG images. A remote attacker could provide a JPEG image with specially-crafted sequences of RST0 up to RST7 restart markers (used to indicate the input stream to be corrupted), which once processed by ImageMagick, would cause it to consume excessive amounts of memory and CPU time. </Note></Notes>
    <DiscoveryDate>2012-03-28T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-03-28T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0260</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Client-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Client-Workstation-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
      <ProductID>5Server-5.8.Z:ImageMagick-6.2.8.0-15.el5_8</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.3</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:N/I:N/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-0545.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0260.html</URL>
        <Description>CVE-2012-0260</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=807994</URL>
        <Description>bz#807994: CVE-2012-0260 ImageMagick: excessive CPU use DoS by processing JPEG images with crafted restart markers</Description>
      </Reference>
    </References>
    <Acknowledgments><Acknowledgment><Description>Red Hat would like to thank CERT-FI for reporting this issue. CERT-FI acknowledges Aleksis Kauppinen, Joonas Kuorilehto, Tuomas Parttimaa and Lasse Ylivainio of Codenomicon's CROSS project as the original reporters.</Description></Acknowledgment></Acknowledgments>
  </Vulnerability>
</cvrfdoc>
