Skip to content
Fencer Vulns
medium 6.5

CVE-2018-5685 json

In GraphicsMagick 1.3.27, there is an infinite loop and application hang in the ReadBMPImage function (coders/bmp.c).

published 2018-01-14 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17454

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

Summary

In GraphicsMagick 1.3.27, there is an infinite loop and application hang in the ReadBMPImage function (coders/bmp.c). Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value.

Patch / fix

  • graphicsmagick Debian 14, Debian 13, Debian 12 1.3.27-4

debian advisories DEBIAN-CVE-2018-5685

  • graphicsmagick Ubuntu Pro 14.04 LTS 1.3.18-1ubuntu3.1+esm8
  • graphicsmagick Ubuntu Pro 16.04 LTS 1.3.23-1ubuntu0.6+esm2

ubuntu advisories UBUNTU-CVE-2018-5685

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

  • GraphicsMagick Studio Onsite 1.3, SLE Software Development Kit 11 SP4 1.2.5-4.78.33.1
  • ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 6.4.3.6-7.78.29.2
  • ImageMagick SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +8 more 6.8.8.1-71.33.1

suse advisories SUSE-SU-2018:0413-1SUSE-SU-2018:0350-1SUSE-SU-2018:0349-1

  • graphicsmagick Alpine 3.24, Alpine 3.23, Alpine 3.22 +12 more 1.3.28-r0

alpine advisories ALPINE-CVE-2018-5685

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

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-2018-5685 updated cvss 4.4

GraphicsMagick: Infinite loop and application hang in coders/bmp.c:ReadBMPImage

  • Red Hat All currently supported Red Hat products
    not 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

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

Exploits and checks

  • sourceforge.net https://sourceforge.net/p/graphicsmagick/bugs/541/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:N/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-835 Loop with Unreachable Exit Condition

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.