Home / Graphicsmagick / Graphicsmagick / CVE-2016-5118
CVE-2016-5118: is it exploited, and which versions of Graphicsmagick are affected and fixed?
CVE-2016-5118 is a vulnerability in Graphicsmagick. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:08 UTC). Affected: graphicsmagick through 1.3.23, linux enterprise debuginfo 11, studio onsite 1.3 and 20 more (NVD). Fixed in 7.0.1-7 (NVD). Severity: Critical (9.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:08 UTC, CVE record November 19, 2026, 07:18 UTC and NVD November 19, 2026, 08:45 UTC.
What is CVE-2016-5118?
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.
From the CVE record by mitre, last updated August 6, 2024, 00:53 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| graphicsmagick | graphicsmagick | through 1.3.23 | application |
| suse | linux enterprise debuginfo | 11 | application |
| suse | studio onsite | 1.3 | application |
| suse | linux enterprise software development kit | 11 | operating system |
| oracle | solaris | 10 | operating system |
| oracle | solaris | 11.3 | operating system |
| oracle | linux | 6 | operating system |
| oracle | linux | 7 | operating system |
| opensuse | leap | 42.1 | operating system |
| opensuse | opensuse | 13.2 | operating system |
| canonical | ubuntu linux | 12.04 | operating system |
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 15.10 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| debian | debian linux | 8.0 | operating system |
| suse | linux enterprise desktop | 12 | operating system |
| suse | linux enterprise desktop | 12.0 | operating system |
| suse | linux enterprise server | 12 | operating system |
| suse | linux enterprise server | 12.0 | operating system |
| suse | linux enterprise software development kit | 12 | operating system |
| suse | linux enterprise software development kit | 12.0 | operating system |
| suse | linux enterprise workstation extension | 12 | operating system |
| imagemagick | imagemagick | before 7.0.1-7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 00:48 UTC.
How severe is CVE-2016-5118?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2016-5118 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 50.0% probability of exploitation activity in the next 30 days, percentile 98.9 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- RHSA-2016:1237 vendor-advisory, x_refsource_REDHAT
- 1035985 vdb-entry, x_refsource_SECTRACK
- SUSE-SU-2016:1570 vendor-advisory, x_refsource_SUSE
- http://hg.code.sf.net/p/graphicsmagick/code/rev/ae3928faa858 x_refsource_CONFIRM
- openSUSE-SU-2016:1534 vendor-advisory, x_refsource_SUSE
- openSUSE-SU-2016:1521 vendor-advisory, x_refsource_SUSE
- 1035984 vdb-entry, x_refsource_SECTRACK
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html x_refsource_CONFIRM
- 90938 vdb-entry, x_refsource_BID
- [oss-security] 20160529 Re: CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filename mailing-list, x_refsource_MLIST
- USN-2990-1 vendor-advisory, x_refsource_UBUNTU
- DSA-3591 vendor-advisory, x_refsource_DEBIAN
- SSA:2016-152-01 vendor-advisory, x_refsource_SLACKWARE
- SUSE-SU-2016:1614 vendor-advisory, x_refsource_SUSE
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html x_refsource_CONFIRM
- DSA-3746 vendor-advisory, x_refsource_DEBIAN
- [oss-security] 20160529 CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filename mailing-list, x_refsource_MLIST
- SUSE-SU-2016:1610 vendor-advisory, x_refsource_SUSE
- openSUSE-SU-2016:1653 vendor-advisory, x_refsource_SUSE
- openSUSE-SU-2016:1522 vendor-advisory, x_refsource_SUSE
- http://git.imagemagick.org/repos/ImageMagick/commit/40639d173aa8c76b850d625c630b711fee4dcfb8 x_refsource_CONFIRM
- http://hg.code.sf.net/p/graphicsmagick/code/file/41876934e762/ChangeLog x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- May 29, 2016
- Published
- June 10, 2016, 15:00 UTC
- CVE record updated
- August 6, 2024, 00:53 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 00:48 UTC
- Last checked
- CVE list November 19, 2026, 07:18 UTC; NVD November 19, 2026, 08:45 UTC; KEV December 3, 2026, 07:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Graphicsmagick?
- Sep 30, 2026CVE-2026-103118 GraphicsMagick: uncontrolled recursion
- Apr 9, 2025CVE-2025-32460 GraphicsMagick: out-of-bounds read
- Mar 7, 2025CVE-2025-27796 GraphicsMagick: use of uninitialized resource
- Mar 7, 2025CVE-2025-27795 GraphicsMagick: denial of service (resources allocated without limits)
- Aug 22, 2023CVE-2020-21679 Graphicsmagick: out-of-bounds write (memory corruption)
- Sep 28, 2022CVE-2022-1270 GraphicsMagick: memory corruption (buffer overflow)
- May 6, 2020CVE-2020-12672 Graphicsmagick: out-of-bounds write (memory corruption)
- Mar 24, 2020CVE-2020-10938 Graphicsmagick: integer overflow
Questions about CVE-2016-5118
Is CVE-2016-5118 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:08 UTC. FIRST's EPSS gives it a 50.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Graphicsmagick are affected by CVE-2016-5118?
graphicsmagick through 1.3.23, linux enterprise debuginfo 11, studio onsite 1.3, linux enterprise software development kit 11, solaris 10, solaris 11.3 and 17 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2016-5118?
7.0.1-7, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2016-5118?
Critical (9.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2016-5118?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.