First published: Mon May 30 2016(Updated: )
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 <a href="https://access.redhat.com/security/cve/CVE-2016-3714">CVE-2016-3714</a>, this functionality is supported by the core file opening function rather than a delegates subsystem usually used to execute external programs. References: <a href="http://seclists.org/oss-sec/2016/q2/432">http://seclists.org/oss-sec/2016/q2/432</a>
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
GraphicsMagick | <=1.3.23 | |
SUSE Linux Enterprise Debuginfo | =11-sp4 | |
SUSE Studio Onsite | =1.3 | |
SUSE Linux Enterprise Software Development Kit | =11-sp4 | |
Oracle Solaris SPARC | =10 | |
Oracle Solaris SPARC | =11.3 | |
Oracle Linux | =6 | |
Oracle Linux | =7 | |
openSUSE | =42.1 | |
openSUSE | =13.2 | |
Ubuntu | =12.04 | |
Ubuntu | =14.04 | |
Ubuntu | =15.10 | |
Ubuntu | =16.04 | |
Debian | =8.0 | |
SUSE Linux Enterprise Desktop with Beagle | =12 | |
SUSE Linux Enterprise Desktop with Beagle | =12.0-sp1 | |
SUSE Linux Enterprise Server | =12 | |
SUSE Linux Enterprise Server | =12.0-sp1 | |
SUSE Linux Enterprise Software Development Kit | =12 | |
SUSE Linux Enterprise Software Development Kit | =12.0-sp1 | |
SUSE Linux Enterprise Workstation Extension | =12 | |
SUSE Linux Enterprise Workstation Extension | =12-sp1 | |
ImageMagick ImageMagick | <7.0.1-7 | |
ImageMagick ImageMagick |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2016-5118 has a CVSS score indicating it poses a medium severity risk due to command execution vulnerabilities.
To fix CVE-2016-5118, update to the latest versions of GraphicsMagick and ImageMagick that address this vulnerability.
CVE-2016-5118 affects multiple software including versions of GraphicsMagick, ImageMagick, and various Linux distributions.
Yes, CVE-2016-5118 can lead to remote code execution if an attacker exploits the vulnerable file open syntax.
A potential workaround for CVE-2016-5118 is to disable or restrict the use of piped file I/O in GraphicsMagick and ImageMagick.