# CVE-2018-18701: An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31.

- Severity: Medium 5.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-10-27T16:00:00.000Z
- Modified: 2026-06-17T01:47:43.020Z
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

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 next_is_type_qual() and cplus_demangle_type() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu binutils: 2.31

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87675> (exploit, issue-tracking, vendor-advisory)
- <https://usn.ubuntu.com/4326-1/> (vendor-advisory)
- <https://usn.ubuntu.com/4336-1/> (vendor-advisory)

## Sources

- CVE List: [CVE-2018-18701](https://www.cve.org/CVERecord?id=CVE-2018-18701), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-18701](https://nvd.nist.gov/vuln/detail/CVE-2018-18701), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-18701 · Whole record: https://cve.day/CVE-2018-18701.json · Rebuilt by cve.day 2026-11-25T22:57:40.642Z
