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 1340814 - (CVE-2016-5118) CVE-2016-5118 ImageMagick: Remote code execution via filename
CVE-2016-5118 ImageMagick: Remote code execution via filename
Status: NEW
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=20160529,repo...
: Security
Depends On: 1340815 1340816 1340817 1341777 1341778 1341779 1341780
Blocks: 1333419
  Show dependency treegraph
 
Reported: 2016-05-30 06:53 EDT by Andrej Nemec
Modified: 2018-06-29 18:08 EDT (History)
16 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was discovered that ImageMagick did not properly sanitize certain input before using it to invoke processes. 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 lead to arbitrary execution of shell commands with the privileges of the user running the application.
Story Points: ---
Clone Of:
Environment:
Last Closed:
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:1237 normal SHIPPED_LIVE Important: ImageMagick security update 2016-07-18 13:06:55 EDT

  None (edit)
Description Andrej Nemec 2016-05-30 06:53:02 EDT
All existing releases of GraphicsMagick and ImageMagick support a file open syntax where if the first character of the file specification is a '|', then the remainder of the filename is passed to the shell for execution using the POSIX popen(3C) function.  File opening is handled by an OpenBlob() function in the source file blob.c. Unlike the vulnerability described by CVE-2016-3714, this functionality is supported by the core file opening function rather than a delegates subsystem usually used to execute external programs.

References:

http://seclists.org/oss-sec/2016/q2/432
Comment 1 Andrej Nemec 2016-05-30 06:54:01 EDT
Created GraphicsMagick tracking bugs for this issue:

Affects: fedora-all [bug 1340816]
Affects: epel-all [bug 1340817]
Comment 2 Andrej Nemec 2016-05-30 06:54:11 EDT
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1340815]
Comment 5 Tomas Hoger 2016-06-15 07:57:05 EDT
Patch attached to the oss-security post linked in comment 0 only disabled popen support.  This GraphicsMagick upstream patch removes popen support completely:

http://hg.code.sf.net/p/graphicsmagick/code/rev/ae3928faa858
Comment 6 errata-xmlrpc 2016-06-16 18:48:07 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 7

Via RHSA-2016:1237 https://access.redhat.com/errata/RHSA-2016:1237
Comment 7 Fedora Update System 2016-06-17 14:17:06 EDT
GraphicsMagick-1.3.24-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
Comment 8 Fedora Update System 2016-06-17 18:47:01 EDT
GraphicsMagick-1.3.24-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Comment 9 Fedora Update System 2016-06-18 11:47:44 EDT
GraphicsMagick-1.3.24-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2016-06-18 14:53:16 EDT
GraphicsMagick-1.3.24-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2016-06-19 03:19:04 EDT
GraphicsMagick-1.3.24-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2016-06-19 03:26:52 EDT
GraphicsMagick-1.3.24-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 13 Pavel Alexeev 2016-11-20 13:06:46 EST
Does it reported to ImageMagick upstream?

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