cve.bz

CVE-2018-5685 Infinite Loop

6.5 mediumExploit referenceEPSS 1.9%Fix available

Medium (6.5). EPSS 1.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-5685 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-5685?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-5685?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-5685 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
graphicsmagick:graphicsmagick1.3.27
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7graphicsmagick1.3.16-1.1+deb7u17DLA-1245-1
Debian8graphicsmagick1.3.20-3+deb8u4DLA-1456-1
Debian9graphicsmagick1.3.30+hg15796-1~deb9u1DSA-4321-1
Debian12, 13, 14graphicsmagick1.3.27-4DEBIAN-CVE-2018-5685
Ubuntu20.04:LTSgraphicsmagick1.4+really1.3.35-1ubuntu0.1USN-5974-1
UbuntuPro:14.04:LTSgraphicsmagick1.3.18-1ubuntu3.1+esm8UBUNTU-CVE-2018-5685 USN-5974-1
UbuntuPro:16.04:LTSgraphicsmagick1.3.23-1ubuntu0.6+esm2UBUNTU-CVE-2018-5685 USN-5974-1
UbuntuPro:18.04:LTSgraphicsmagick1.3.28-2ubuntu0.2+esm1USN-5974-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 8 moreImageMagick6.8.8.1-71.33.1SUSE-SU-2018:0349-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4ImageMagick6.4.3.6-7.78.29.2SUSE-SU-2018:0350-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-4.78.33.1SUSE-SU-2018:0413-1
Alpinev3.10, v3.11, v3.12 and 12 moregraphicsmagick1.3.28-r0ALPINE-CVE-2018-5685

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

References

Check your stackJSON