Skip to content
Fencer Vulns
critical 9.8

CVE-2016-5118 in the critical feed json

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbitrary code via a | (…

published 2016-06-10 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6069

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
50.0%
EPSS 50.0% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • imagemagick imagemagick 7.0.1-7
  • imagemagick Debian 14, Debian 13, Debian 12 8:6.8.9.9-7.1
  • graphicsmagick Debian 14, Debian 13, Debian 12 1.3.24-1

debian advisories DEBIAN-CVE-2016-5118

  • imagemagick Ubuntu 14.04 LTS 8:6.7.7.10-6ubuntu3.1
  • imagemagick Ubuntu 16.04 LTS 8:6.8.9.9-7ubuntu5.1
  • graphicsmagick Ubuntu 14.04 LTS 1.3.18-1ubuntu3.1
  • graphicsmagick Ubuntu 16.04 LTS 1.3.23-1ubuntu0.1

ubuntu advisories UBUNTU-CVE-2016-5118

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ImageMagick RHEL 6 6.7.2.7-5.el6_8
  • ImageMagick RHEL 7 6.7.8.9-15.el7_2
  • ImageMagick-c++ RHEL 6 6.7.2.7-5.el6_8
  • ImageMagick-c++ RHEL 7 6.7.8.9-15.el7_2
  • ImageMagick-perl RHEL 6 6.7.2.7-5.el6_8
  • ImageMagick-perl RHEL 7 6.7.8.9-15.el7_2

red hat advisories RHSA-2016:1237

  • GraphicsMagick Studio Onsite 1.3, SLE Software Development Kit 11 SP4 1.2.5-4.38.1
  • ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +6 more 6.4.3.6-7.40.1
  • ImageMagick SLES for SAP 12 SP1, SLES for SAP 12, SLES 12 SP1 +7 more 6.8.8.1-25.1

suse advisories SUSE-SU-2016:1614-1SUSE-SU-2016:1610-1SUSE-SU-2016:1570-1

  • ImageMagick openSUSE Tumbleweed 6.9.6.6-1.1
  • GraphicsMagick openSUSE Tumbleweed 1.3.25-1.1

opensuse advisories openSUSE-SU-2024:10040-1openSUSE-SU-2024:10505-1

  • imagemagick Alpine 3.3, Alpine 3.2 6.9.6.8-r0

alpine advisories ALPINE-CVE-2016-5118

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-5118 updated cvss 6.8

ImageMagick: Remote code execution via filename

  • Red Hat Enterprise Linux 5 ImageMagick Red Hat OpenShift Enterprise 2 ImageMagick
    affected: no fix available
  • Red Hat Enterprise Linux Client (v. 7) ImageMagick 6.7.8.9-15.el7_2, ImageMagick-c++ 6.7.8.9-15.el7_2 Red Hat Enterprise Linux Client Optional (v. 7) ImageMagick-perl 6.7.8.9-15.el7_2 Red Hat Enterprise Linux ComputeNode Optional (v. 7) ImageMagick 6.7.8.9-15.el7_2, ImageMagick-c++ 6.7.8.9-15.el7_2, ImageMagick-perl 6.7.8.9-15.el7_2 Red Hat Enterprise Linux Desktop (v. 6) ImageMagick 6.7.2.7-5.el6_8, ImageMagick-c++ 6.7.2.7-5.el6_8 Red Hat Enterprise Linux Desktop Optional (v. 6) ImageMagick-c++ 6.7.2.7-5.el6_8, ImageMagick-perl 6.7.2.7-5.el6_8 Red Hat Enterprise Linux HPC Node Optional (v. 6) ImageMagick 6.7.2.7-5.el6_8, ImageMagick-c++ 6.7.2.7-5.el6_8, ImageMagick-perl 6.7.2.7-5.el6_8
    +8 more products
    Red Hat Enterprise Linux Server (v. 6) ImageMagick 6.7.2.7-5.el6_8, ImageMagick-c++ 6.7.2.7-5.el6_8 Red Hat Enterprise Linux Server (v. 7) ImageMagick 6.7.8.9-15.el7_2, ImageMagick-c++ 6.7.8.9-15.el7_2, ImageMagick-perl 6.7.8.9-15.el7_2 Red Hat Enterprise Linux Server Optional (v. 6) ImageMagick-c++ 6.7.2.7-5.el6_8, ImageMagick-perl 6.7.2.7-5.el6_8 Red Hat Enterprise Linux Server Optional (v. 7) ImageMagick-c++ 6.7.8.9-15.el7_2 Red Hat Enterprise Linux Workstation (v. 6) ImageMagick 6.7.2.7-5.el6_8, ImageMagick-c++ 6.7.2.7-5.el6_8 Red Hat Enterprise Linux Workstation (v. 7) ImageMagick 6.7.8.9-15.el7_2, ImageMagick-c++ 6.7.8.9-15.el7_2, ImageMagick-perl 6.7.8.9-15.el7_2 Red Hat Enterprise Linux Workstation Optional (v. 6) ImageMagick-c++ 6.7.2.7-5.el6_8, ImageMagick-perl 6.7.2.7-5.el6_8 Red Hat Enterprise Linux Workstation Optional (v. 7) ImageMagick-doc 6.7.8.9-15.el7_2, ImageMagick-devel 6.7.8.9-15.el7_2, ImageMagick-c++-devel 6.7.8.9-15.el7_2, ImageMagick-debuginfo 6.7.8.9-15.el7_2
    fixed: vendor fix RHSA-2016:1237

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

49.98% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.