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 ImageMagickaffected: 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_8fixed: vendor fix RHSA-2016:1237
+8 more productsfewer
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
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
-
git.imagemagick.org
/repos/ImageMagick/commit/40639d173aa8c76b850d625c630b711fee4dcfb8
broken-link, vendor-advisory
-
access.redhat.com
/errata/RHSA-2016:1237
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00021.html
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00011.html
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00008.html
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-2990-1
vendor-advisory, third-party-advisory
-
debian.org
/security/2016/dsa-3591
vendor-advisory, third-party-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.397749
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00032.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2016/dsa-3746
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00030.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00047.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-06/msg00009.html
vendor-advisory, third-party-advisory
-
hg.code.sf.net
/p/graphicsmagick/code/file/41876934e762/ChangeLog
release-notes, vendor-advisory
-
securitytracker.com
/id/1035985
vdb-entry, broken-link, third-party-advisory
-
hg.code.sf.net
/p/graphicsmagick/code/rev/ae3928faa858
broken-link
-
securitytracker.com
/id/1035984
vdb-entry, third-party-advisory
-
oracle.com
/technetwork/topics/security/linuxbulletinapr2016-2952096.html
third-party-advisory
-
securityfocus.com
/bid/90938
vdb-entry, broken-link, third-party-advisory
-
openwall.com
/lists/oss-security/2016/05/30/1
mailing-list, third-party-advisory
-
oracle.com
/technetwork/topics/security/bulletinjul2016-3090568.html
third-party-advisory
-
openwall.com
/lists/oss-security/2016/05/29/7
mailing-list, release-notes
Sources
- CVE List CVE-2016-5118
- NVD CVE-2016-5118
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.