CVE-2016-5239 json
The gnuplot delegate functionality in ImageMagick before 6.9.4-0 and GraphicsMagick allows remote attackers to execute arbitrary commands v…
published 2017-03-15 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6190
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
The gnuplot delegate functionality in ImageMagick before 6.9.4-0 and GraphicsMagick allows remote attackers to execute arbitrary commands via unspecified vectors.
Patch / fix
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.6.2+dfsg-2
- graphicsmagick Debian 14, Debian 13, Debian 12 1.3.24-1
debian advisories DEBIAN-CVE-2016-5239
- 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-5239
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
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-5239 updated cvss 5.1
ImageMagick,GraphicsMagick: Gnuplot delegate vulnerability allowing command injection
-
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 Enterprise Linux 5 ImageMagicknot affected: vulnerable code not present
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
3.16% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
git.imagemagick.org
/repos/ImageMagick/commit/70a2cf326ed32bedee144b961005c63846541a16
issue-tracking, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2016/06/02/13
mailing-list, patch, third-party-advisory
-
access.redhat.com
/errata/RHSA-2016:1237
vendor-advisory
- oracle.com /technetwork/topics/security/linuxbulletinapr2016-2952096.html
-
securityfocus.com
/bid/91018
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/08/msg00002.html
mailing-list
Sources
- CVE List CVE-2016-5239
- NVD CVE-2016-5239
Fencer Intel 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.