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.
02 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.
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 49.98% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 98.7% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2016-06-10 15:00Z10 YR AGO
- Last updated
- 2024-08-06 00:53Z2 YR AGO
- Reserved
- 2016-05-29
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-20Improper Input ValidationClass
- Data version
- 5.1
- Document digest
- b4c7c3912d55090cd1695549066804c779ec2ac6a25ab0353cfffeb15622ec87
05 Affected products
06 References
- access.redhat.comRHSA-2016:1237https://access.redhat.com/errata/RHSA-2016:1237
- www.securitytracker.com1035985http://www.securitytracker.com/id/1035985
- lists.opensuse.orgSUSE-SU-2016:1570http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00021.html
- hg.code.sf.nethttp://hg.code.sf.net/p/graphicsmagick/code/rev/ae3928faa858
- lists.opensuse.orgopenSUSE-SU-2016:1534http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00011.html
- lists.opensuse.orgopenSUSE-SU-2016:1521http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00008.html
- www.securitytracker.com1035984http://www.securitytracker.com/id/1035984
- www.oracle.comhttp://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- www.securityfocus.com90938http://www.securityfocus.com/bid/90938
- www.openwall.com[oss-security] 20160529 Re: CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filenamehttp://www.openwall.com/lists/oss-security/2016/05/30/1
- www.ubuntu.comUSN-2990-1http://www.ubuntu.com/usn/USN-2990-1
- www.debian.orgDSA-3591http://www.debian.org/security/2016/dsa-3591
- www.slackware.comSSA:2016-152-01http://www.slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.397749
- lists.opensuse.orgSUSE-SU-2016:1614http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00032.html
- www.oracle.comhttp://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- www.debian.orgDSA-3746http://www.debian.org/security/2016/dsa-3746
- www.openwall.com[oss-security] 20160529 CVE Request: GraphicsMagick and ImageMagick popen() shell vulnerability via filenamehttp://www.openwall.com/lists/oss-security/2016/05/29/7
- lists.opensuse.orgSUSE-SU-2016:1610http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00030.html
- lists.opensuse.orgopenSUSE-SU-2016:1653http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00047.html
- lists.opensuse.orgopenSUSE-SU-2016:1522http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00009.html
- git.imagemagick.orghttp://git.imagemagick.org/repos/ImageMagick/commit/40639d173aa8c76b850d625c630b711fee4dcfb8
- hg.code.sf.nethttp://hg.code.sf.net/p/graphicsmagick/code/file/41876934e762/ChangeLog
07 Fixed in
Debian 12
- graphicsmagick Fixed in 1.3.24-1
- imagemagick Fixed in 8:6.8.9.9-7.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- graphicsmagick Fixed in 1.3.24-1
- imagemagick Fixed in 8:6.8.9.9-7.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- graphicsmagick Fixed in 1.3.24-1
- imagemagick Fixed in 8:6.8.9.9-7.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- graphicsmagick Fixed in 1.3.18-1ubuntu3.1
- imagemagick Fixed in 8:6.7.7.10-6ubuntu3.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- graphicsmagick Fixed in 1.3.23-1ubuntu0.1
- imagemagick Fixed in 8:6.8.9.9-7ubuntu5.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.