Bug 1332802 (CVE-2016-3718) - CVE-2016-3718 ImageMagick: SSRF vulnerability
Summary: CVE-2016-3718 ImageMagick: SSRF vulnerability
Alias: CVE-2016-3718
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1332638 1332639 1332640 1332641 1332695 1332804 1332930 1332938 1332939 1332941 1332942 1332943
Blocks: 1332507
TreeView+ depends on / blocked
Reported: 2016-05-04 06:46 UTC by Andrej Nemec
Modified: 2021-02-17 03:56 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A server-side request forgery flaw was discovered in the way ImageMagick processed certain images. A remote attacker could exploit this flaw to mislead an application using ImageMagick or an unsuspecting user using the ImageMagick utilities into, for example, performing HTTP(S) requests or opening FTP sessions via specially crafted images.
Clone Of:
Last Closed: 2016-06-02 12:59:33 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0726 0 normal SHIPPED_LIVE Important: ImageMagick security update 2016-05-09 22:03:43 UTC

Description Andrej Nemec 2016-05-04 06:46:47 UTC
A vulnerability was found in ImageMagick. It is possible to force a HTTP, GET or FTP request from user via a crafted .mvg file.

Comment 1 Andrej Nemec 2016-05-04 06:47:30 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1332804]

Comment 6 Stefan Cornelius 2016-05-05 08:36:58 UTC

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:


Red Hat Enterprise Linux 5

In the following folders:
/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/ (64bit package)
/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 7 errata-xmlrpc 2016-05-09 18:05:19 UTC
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.