Skip to content
Fencer Vulns
medium 5.5

CVE-2016-5240 json

The DrawDashPolygon function in magick/render.c in GraphicsMagick before 1.3.24 and the SVG renderer in ImageMagick allow remote attackers…

published 2017-02-27 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6191

cvss
5.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.2%
EPSS 2.2% chance of exploitation in 30 days, percentile 82%
public exploits
0
none known

Summary

The DrawDashPolygon function in magick/render.c in GraphicsMagick before 1.3.24 and the SVG renderer in ImageMagick allow remote attackers to cause a denial of service (infinite loop) by converting a circularly defined SVG file.

Patch / fix

  • graphicsmagick Debian 14, Debian 13, Debian 12 1.3.24-1

debian advisories DEBIAN-CVE-2016-5240

  • 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-5240

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.41.1

suse advisories SUSE-SU-2016:1783-1

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-5240 updated cvss 4.3

ImageMagick: SVG converting issue resulting in DoS

  • Red Hat Enterprise Linux 5 ImageMagick
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Enterprise 2 ImageMagick
    under investigation
  • 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_8
    +8 more products
    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
    fixed: vendor fix RHSA-2016:1237

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

2.18% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 5.5 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

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.