# CVE-2018-5685

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-01-14 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2018-5685, DEBIAN-CVE-2018-5685, DLA-1245-1, ALPINE-CVE-2018-5685
- Record: https://cvemate.com/vulnerability/CVE-2018-5685 · JSON: https://cvemate.com/vulnerability/CVE-2018-5685/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.938%, percentile 80.824%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine graphicsmagick (Alpine Linux): \< 1.3.28-r0
- debian graphicsmagick (Debian): \< 1.3.27-4 \| \< 1.3.16-1.1+deb7u17
- ubuntu graphicsmagick (Ubuntu): \< 1.3.18-1ubuntu3.1+esm8 \| \< 1.3.23-1ubuntu0.6+esm2
- debian debian\_linux: 7.0 \| 8.0 \| 9.0
- graphicsmagick graphicsmagick: 1.3.27

## References

- <https://sourceforge.net/p/graphicsmagick/bugs/541/>
- <http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/52a91ddb1aa6>
- <https://lists.debian.org/debian-lts-announce/2018/01/msg00018.html>
- <https://www.debian.org/security/2018/dsa-4321>
- <https://lists.debian.org/debian-lts-announce/2018/08/msg00002.html>
- <https://ubuntu.com/security/CVE-2018-5685>
- <https://ubuntu.com/security/notices/USN-5974-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-5685>
- <https://security-tracker.debian.org/tracker/CVE-2018-5685>
- <https://security.alpinelinux.org/vuln/CVE-2018-5685>

---

Data as of 2026-12-05T04:27:37.058Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
