← Vulnerability feed

Vulnerability record · CVE-2016-5118 · published 10 June 2016

CVE-2016-5118: GraphicsMagick and ImageMagick OpenBlob pipe filename command execution

Graphicsmagick · Graphicsmagick

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and in ImageMagick mishandles a pipe character at the start of a filename, allowing remote attackers to execute arbitrary code. Because image processing libraries are commonly fed untrusted files by web applications and services, this flaw exposes any such deployment to remote code execution.

9.8 CVSS 3.1 Critical EPSS 50% · top 1.1%
9.8CVSS 3.1 base score, v2 10.0
50%EPSS exploitation probability, 30 days
NoNot in CISA KEV
14Affected product versions listed by NVD
44References
17 Jun 2026Last modified by NVD

Description

The 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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

critical priorityCVSS 3.1 base score is 9.8 with network reachability, no privileges and no user interaction, and EPSS is near the top percentile, so unpatched exposure is severe.

What it is

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and in ImageMagick mishandles a pipe character at the start of a filename, allowing remote attackers to execute arbitrary code. Because image processing libraries are commonly fed untrusted files by web applications and services, this flaw exposes any such deployment to remote code execution.

Impact

An attacker gains arbitrary code execution with the privileges of the process handling the crafted filename, which can lead to full host compromise depending on how the image library is invoked.

Attack surface

Reached over the network by supplying a crafted filename beginning with a pipe character to an application that passes it to the affected library; the CVSS vector indicates no authentication and no user interaction are required.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented, but EPSS is high at roughly 0.50 (98.8th percentile), and references include vendor advisories and release notes rather than public exploit tags.

What to do

  • Upgrade GraphicsMagick to 1.3.24 or later and apply the corresponding ImageMagick fix from the vendor commit.
  • Apply distribution security updates (Debian DSA-3591/DSA-3746, Ubuntu USN-2990-1, openSUSE, Red Hat RHSA-2016:1237, Oracle, Slackware) for all affected packages.
  • Sanitize or reject filenames containing a leading pipe character before passing them to image processing libraries, and avoid passing user-controlled strings as filenames.
  • Run image processing in a sandboxed, low-privilege process with restricted filesystem and network access to limit the impact of code execution.

Detection

  • Monitor process creation for shell or command interpreters spawned as children of image processing services.
  • Alert on filenames or arguments beginning with a pipe character reaching image library calls in application logs or audit trails.
  • Watch for unexpected outbound network connections or file writes originating from image conversion processes.
  • Audit hosts for GraphicsMagick versions below 1.3.24 and unpatched ImageMagick packages.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

14 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://git.imagemagick.org/repos/ImageMagick/commit/40639d173aa8c76b850d625c630b711fee4dcfb8 Broken LinkVendor Advisory
http://hg.code.sf.net/p/graphicsmagick/code/file/41876934e762/ChangeLog Release NotesVendor Advisory
http://hg.code.sf.net/p/graphicsmagick/code/rev/ae3928faa858 Broken Link
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00008.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00009.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00011.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00021.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00030.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00032.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00047.html Mailing ListThird Party Advisory
http://www.debian.org/security/2016/dsa-3591 Third Party Advisory
http://www.debian.org/security/2016/dsa-3746 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/05/29/7 Mailing ListRelease Notes
http://www.openwall.com/lists/oss-security/2016/05/30/1 Mailing ListThird Party Advisory
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html Third Party Advisory
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html Third Party Advisory
http://www.securityfocus.com/bid/90938 Broken LinkThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1035984 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1035985 Broken LinkThird Party AdvisoryVDB Entry
http://www.slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.397749 Third Party Advisory
http://www.ubuntu.com/usn/USN-2990-1 Third Party Advisory
https://access.redhat.com/errata/RHSA-2016:1237 Third Party Advisory
http://git.imagemagick.org/repos/ImageMagick/commit/40639d173aa8c76b850d625c630b711fee4dcfb8 Broken LinkVendor Advisory
http://hg.code.sf.net/p/graphicsmagick/code/file/41876934e762/ChangeLog Release NotesVendor Advisory
http://hg.code.sf.net/p/graphicsmagick/code/rev/ae3928faa858 Broken Link
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00008.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00009.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00011.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00021.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00030.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00032.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00047.html Mailing ListThird Party Advisory
http://www.debian.org/security/2016/dsa-3591 Third Party Advisory
http://www.debian.org/security/2016/dsa-3746 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/05/29/7 Mailing ListRelease Notes
http://www.openwall.com/lists/oss-security/2016/05/30/1 Mailing ListThird Party Advisory
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html Third Party Advisory
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html Third Party Advisory
http://www.securityfocus.com/bid/90938 Broken LinkThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1035984 Third Party AdvisoryVDB Entry

Track CVE-2016-5118 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2016-5118), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.