cve.bz

CVE-2016-5118

9.8 criticalEPSS 50%

Critical (9.8). EPSS 50% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
50% (unchanged from 50% a week ago; 50% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-5118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-5118?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-5118?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-5118 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
graphicsmagick:graphicsmagickthrough 1.3.23
suse:linux_enterprise_debuginfo11:sp4
suse:studio_onsite1.3
suse:linux_enterprise_software_development_kit11:sp4
oracle:solaris10
oracle:solaris11.3
oracle:linux6
oracle:linux7
opensuse:leap42.1
opensuse:opensuse13.2
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux15.10
canonical:ubuntu_linux16.04
debian:debian_linux8.0
suse:linux_enterprise_desktop12
suse:linux_enterprise_desktop12.0:sp1
suse:linux_enterprise_server12
suse:linux_enterprise_server12.0:sp1
suse:linux_enterprise_software_development_kit12
suse:linux_enterprise_software_development_kit12.0:sp1
suse:linux_enterprise_workstation_extension12
suse:linux_enterprise_workstation_extension12:sp1
imagemagick:imagemagickbefore 7.0.1-7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7graphicsmagick1.3.16-1.1+deb7u2DLA-502-1
Debian7imagemagick8:6.7.7.10-5+deb7u6DLA-500-1
Debian8graphicsmagick1.3.20-3+deb8u2DSA-3746-1
Debian8imagemagick8:6.8.9.9-5+deb8u3DSA-3591-1
Debian12, 13, 14graphicsmagick1.3.24-1DEBIAN-CVE-2016-5118
Debian12, 13, 14imagemagick8:6.8.9.9-7.1DEBIAN-CVE-2016-5118
Ubuntu14.04:LTSgraphicsmagick1.3.18-1ubuntu3.1UBUNTU-CVE-2016-5118
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.1UBUNTU-CVE-2016-5118 USN-2990-1
Ubuntu16.04:LTSgraphicsmagick1.3.23-1ubuntu0.1UBUNTU-CVE-2016-5118
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.1UBUNTU-CVE-2016-5118 USN-2990-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moreImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.7.2.7-5.el6_8RHSA-2016:1237
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.7.8.9-15.el7_2RHSA-2016:1237
SUSELinux Enterprise Desktop 12, Linux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 and 7 moreImageMagick6.8.8.1-25.1SUSE-SU-2016:1570-1
SUSELinux Enterprise Server 11 SP2-LTSS, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 6 moreImageMagick6.4.3.6-7.40.1SUSE-SU-2016:1610-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-4.38.1SUSE-SU-2016:1614-1
openSUSETumbleweedGraphicsMagick1.3.25-1.1openSUSE-SU-2024:10505-1
openSUSETumbleweedImageMagick6.9.6.6-1.1openSUSE-SU-2024:10040-1
Alpinev3.2, v3.3imagemagick6.9.6.8-r0ALPINE-CVE-2016-5118

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6ImageMagick-0:6.7.2.7-5.el6_8Fixed 2016-06-16RHSA-2016:1237
Red Hat Enterprise Linux 7ImageMagick-0:6.7.8.9-15.el7_2Fixed 2016-06-16RHSA-2016:1237
Red Hat Enterprise Linux 5ImageMagickAffected
Red Hat OpenShift Enterprise 2ImageMagickAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-5118.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET WEB_SERVER Possible CVE-2016-5118 Exploit SVG attempt M1 sid 2022846
  • Emerging Threats Open ET WEB_SERVER Possible CVE-2016-5118 Exploit SVG attempt M2 sid 2022847
  • Emerging Threats Open ET WEB_SERVER Possible CVE-2016-5118 Exploit MVG attempt M1 sid 2022848
  • Emerging Threats Open ET WEB_SERVER Possible CVE-2016-5118 Exploit MVG attempt M2 sid 2022849

References

Check your stackJSON