Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Generic)  >   GraphicsMagick Vendors:   GraphicsMagick Group
GraphicsMagick popen() File Open Feature Lets Remote Users Execute Arbitrary Commands on the Target System
SecurityTracker Alert ID:  1035985
SecurityTracker URL:
CVE Reference:   CVE-2016-5118   (Links to External Site)
Date:  May 30 2016
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  

Description:   A vulnerability was reported in GraphicsMagick. A remote user can execute arbitrary commands on the target system in certain cases.

A remote user can supply a specially crafted filename string that, when processed by the target application using GraphicsMagick, will execute arbitrary shell commands contained in the filename string. The commands will run with the privileges of the target application using the GraphicsMagick library.

A string with a pipe character ('|') as the first character can trigger this flaw.

The flaw can be exploited, for example, via a specially crafted SVG xlink:href attribute value.

A demonstration exploit command line sequence is provided:

rm -f hello.txt
convert '|echo Hello > hello.txt;' null:
ls hello.txt

Bob Friesenhahn of the GraphicsMagick project reported this vulnerability.

Impact:   A remote user can execute arbitrary commands on the target system in certain cases.
Solution:   The vendor has issued a source code fix, available at:

Vendor URL: (Links to External Site)
Cause:   Access control error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.

 Source Message Contents

[Original Message Not Available for Viewing]

Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC