cve.bz

CVE-2018-18700 gnu binutils: Infinite Loop

5.5 mediumExploit referenceEPSS 1.7%

Medium (5.5) in gnu binutils. EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions d_name(), d_encoding(), and d_local_name() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.

Severity

CVSS 3.0

5.5 medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-18700 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18700?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18700?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-18700 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.

Badge for a README or a site

CVE-2018-18700

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-18700](https://cve.bz/cve/badge/CVE-2018-18700.svg)](https://cve.bz/cve/CVE-2018-18700)

HTML:

<a href="https://cve.bz/cve/CVE-2018-18700"><img src="https://cve.bz/cve/badge/CVE-2018-18700.svg" alt="CVE-2018-18700"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:binutils2.31

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14binutils2.32.51.20190707-1DEBIAN-CVE-2018-18700
Ubuntu16.04:LTSlibiberty20160215-1ubuntu0.3UBUNTU-CVE-2018-18700 USN-4326-1
Ubuntu18.04:LTSbinutils2.30-21ubuntu1~18.04.3UBUNTU-CVE-2018-18700 USN-4336-1
Ubuntu18.04:LTSlibiberty20170913-1ubuntu0.1UBUNTU-CVE-2018-18700 USN-4326-1
UbuntuPro:14.04:LTSbinutilsno fix listedUBUNTU-CVE-2018-18700
UbuntuPro:16.04:LTSbinutils2.26.1-1ubuntu1~16.04.8+esm1UBUNTU-CVE-2018-18700 USN-4336-2

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

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat has determined this flaw to be of low impact as successful exploitation results in a crash (denial of service) of the application utilizing the binutils library and does not impact system-wide stability or lead to arbitrary code execution or memory corruption.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5binutilsWill not fix
Red Hat Enterprise Linux 5binutils220Will not fix
Red Hat Enterprise Linux 6binutilsWill not fix
Red Hat Enterprise Linux 7binutilsWill not fix
Red Hat Enterprise Linux 8binutilsFix deferred
Red Hat Enterprise Linux 8mingw-binutilsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-18700.

References

Check your stackJSON