Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1332505 - (CVE-2016-3717) CVE-2016-3717 ImageMagick: Local file read
CVE-2016-3717 ImageMagick: Local file read
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20160503,repo...
: Security
Depends On: 1332638 1332634 1332639 1332640 1332641 1332695 1332930
Blocks: 1332507
  Show dependency treegraph
 
Reported: 2016-05-03 07:04 EDT by Andrej Nemec
Modified: 2016-06-02 08:59 EDT (History)
14 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was discovered that certain ImageMagick coders and pseudo-protocols did not properly prevent security sensitive operations when processing specially crafted images. A remote attacker could create a specially crafted image that, when processed by an application using ImageMagick or an unsuspecting user using the ImageMagick utilities, would allow the attacker to disclose the contents of arbitrary files.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-02 08:59:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0726 normal SHIPPED_LIVE Important: ImageMagick security update 2016-05-09 18:03:43 EDT

  None (edit)
Description Andrej Nemec 2016-05-03 07:04:21 EDT
A vulnerability was found in ImageMagick. It is possible to get content of the files from the server by using ImageMagick's 'label' pseudo protocol.
Comment 2 Stefan Cornelius 2016-05-03 11:20:01 EDT
Mitigation:

Details can be found under the resolve tab at https://access.redhat.com/security/vulnerabilities/2296071

Red Hat Enterprise Linux 6 and 7
================================

As a workaround the /etc/ImageMagick/policy.xml file can be edited to disable processing of MVG, HTTPS, HTTP, URL, FTP, EPHEMERAL, MSL, LABEL, TEXT,
SHOW, WIN and PLT commands within image files, simply add the following lines:

<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="HTTP" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="FTP" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="LABEL" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
<policy domain="path" rights="none" pattern="@*" />

within the policy map stanza:

<policymap>
...
</policymap>


Red Hat Enterprise Linux 5
==========================

In the following folders:
/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/ (64bit package)
or
/usr/lib/ImageMagick-6.2.8/modules-Q16/coders/ (32bit package)

Rename the following files:
* mvg.so to mvg.so.bak
* msl.so to msl.so.bak
* label.so to label.so.bak
Comment 3 Stefan Cornelius 2016-05-03 11:28:03 EDT
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1332634]
Comment 9 Peter Bex 2016-05-07 09:47:22 EDT
Please note that the ImageMagick package does not mark the policy.xml file as a configuration file, which means any changes you make are dropped on an upgrade or reinstall!  See also [bug 1334045]
Comment 10 errata-xmlrpc 2016-05-09 14:04:30 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 7

Via RHSA-2016:0726 https://rhn.redhat.com/errata/RHSA-2016-0726.html

Note You need to log in before you can comment on or make changes to this bug.