CVE-2016-5118

Summary

CVECVE-2016-5118
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-06-10 15:59:06 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionThe OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbitrary code via a | (pipe) character at the start of a filename.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: NVD-CWE-noinfo | n/a


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary10AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:N/AC:L/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 12.04 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 15.10 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Debian Debian Linux 8.0 All All All
Application Graphicsmagick Graphicsmagick All All All All
Application Imagemagick Imagemagick All All All All
Operating System Opensuse Leap 42.1 All All All
Operating System Opensuse Opensuse 13.2 All All All
Operating System Oracle Linux 6 All All All
Operating System Oracle Linux 7 All All All
Operating System Oracle Solaris 10 All All All
Operating System Oracle Solaris 11.3 All All All
Application Suse Linux Enterprise Debuginfo 11 sp4 All All
Operating System Suse Linux Enterprise Desktop 12 - All All
Operating System Suse Linux Enterprise Desktop 12.0 sp1 All All
Operating System Suse Linux Enterprise Server 12 - All All
Operating System Suse Linux Enterprise Server 12.0 sp1 All All
Operating System Suse Linux Enterprise Software Development Kit 11 sp4 All All
Operating System Suse Linux Enterprise Software Development Kit 12 - All All
Operating System Suse Linux Enterprise Software Development Kit 12.0 sp1 All All
Operating System Suse Linux Enterprise Workstation Extension 12 - All All
Operating System Suse Linux Enterprise Workstation Extension 12 sp1 All All
Application Suse Studio Onsite 1.3 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
oss-security - CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filename af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Release Notes
oss-security - Re: CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filename af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
Debian -- Security Information -- DSA-3746-1 graphicsmagick af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Mercurial Repository: p/graphicsmagick/code: ChangeLog@41876934e762 af854a3a-2127-422b-91ae-364da2661108 hg.code.sf.net Release Notes, Vendor Advisory
[security-announce] openSUSE-SU-2016:1522-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Third Party Advisory
Debian -- Security Information -- DSA-3591-1 imagemagick af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
[security-announce] openSUSE-SU-2016:1534-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Third Party Advisory
Add support for SanitizeString() method (40639d17) · Commits · repos / ImageMagick · GitLab af854a3a-2127-422b-91ae-364da2661108 git.imagemagick.org Broken Link, Vendor Advisory
[security-announce] openSUSE-SU-2016:1653-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
The Slackware Linux Project: Slackware Security Advisories af854a3a-2127-422b-91ae-364da2661108 www.slackware.com Third Party Advisory
Oracle Solaris Bulletin - July 2016 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Third Party Advisory
USN-2990-1: ImageMagick vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
GraphicsMagick popen() File Open Feature Lets Remote Users Execute Arbitrary Commands on the Target System - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 www.securitytracker.com Broken Link, Third Party Advisory, VDB Entry
ImageMagick CVE-2016-5118 Remote Command Execution Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Broken Link, Third Party Advisory, VDB Entry
[security-announce] SUSE-SU-2016:1614-1: important: Security update for af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Third Party Advisory
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
ImageMagick popen() File Open Feature Lets Remote Users Execute Arbitrary Commands on the Target System - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 www.securitytracker.com Third Party Advisory, VDB Entry
[security-announce] openSUSE-SU-2016:1521-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Third Party Advisory
[security-announce] SUSE-SU-2016:1570-1: important: Security update for af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Third Party Advisory
Oracle Linux Bulletin - April 2016 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Third Party Advisory
Mercurial Repository: p/graphicsmagick/code: changeset 14851:ae3928faa858 af854a3a-2127-422b-91ae-364da2661108 hg.code.sf.net Broken Link
[security-announce] SUSE-SU-2016:1610-1: important: Security update for af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report