Advisory Published
CVE Published
Updated

CVE-2016-5118

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2016-5118?

    CVE-2016-5118 has a CVSS score indicating it poses a medium severity risk due to command execution vulnerabilities.

  • How do I fix CVE-2016-5118?

    To fix CVE-2016-5118, update to the latest versions of GraphicsMagick and ImageMagick that address this vulnerability.

  • What types of software are affected by CVE-2016-5118?

    CVE-2016-5118 affects multiple software including versions of GraphicsMagick, ImageMagick, and various Linux distributions.

  • Can CVE-2016-5118 lead to remote code execution?

    Yes, CVE-2016-5118 can lead to remote code execution if an attacker exploits the vulnerable file open syntax.

  • Is there a workaround for CVE-2016-5118 if I cannot update?

    A potential workaround for CVE-2016-5118 is to disable or restrict the use of piped file I/O in GraphicsMagick and ImageMagick.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203