CVE-2018-20673 json
The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, contains an integer overflow vulnera…
published 2019-01-04 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-13224
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, contains an integer overflow vulnerability (for "Create an array for saving the template argument values") that can trigger a heap-based buffer overflow, as demonstrated by nm.
Patch / fix
- gcc RHEL 8 8.5.0-3.el8
- cpp RHEL 8 8.5.0-3.el8
- libgcc RHEL 8 8.5.0-3.el8
- libitm RHEL 8 8.5.0-3.el8
- gcc-c++ RHEL 8 8.5.0-3.el8
- libasan RHEL 8 8.5.0-3.el8
- libgomp RHEL 8 8.5.0-3.el8
- liblsan RHEL 8 8.5.0-3.el8
red hat advisories RHSA-2021:4386
- gcc AlmaLinux 8 8.5.0-3.el8.alma
- cpp AlmaLinux 8 8.5.0-3.el8.alma
- gcc-c++ AlmaLinux 8 8.5.0-3.el8.alma
- gcc-gfortran AlmaLinux 8 8.5.0-3.el8.alma
- gcc-gdb-plugin AlmaLinux 8 8.5.0-3.el8.alma
- gcc-offload-nvptx AlmaLinux 8 8.5.0-3.el8.alma
almalinux advisories ALSA-2021:4386
- gcc Rocky Linux 8 8.5.0-3.el8
rocky linux advisories RLSA-2021:4386
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-20673 updated cvss 5.3
libiberty: Integer overflow in demangle_template() function
-
Red Hat Enterprise Linux 5 gcc, gdb, binutils Red Hat Enterprise Linux 6 cpp, gcc, gdb, libgcc, libgcj, libitm, +17 more Red Hat Enterprise Linux 7 cpp, gcc, libgo, gcc-go, libgcc, libitm, +16 more Red Hat Enterprise Linux 8 binutils, mingw-binutils, mingw32-binutils, mingw64-binutils, mingw-binutils-genericaffected: no fix planned “Will not fix”
-
Red Hat CodeReady Linux Builder (v. 8) cpp-debuginfo 8.5.0-3.el8, gcc-debuginfo 8.5.0-3.el8, gcc-debugsource 8.5.0-3.el8, gcc-plugin-devel 8.5.0-3.el8, libgcc-debuginfo 8.5.0-3.el8, libitm-debuginfo 8.5.0-3.el8, +16 more Red Hat Enterprise Linux AppStream (v. 8) cpp 8.5.0-3.el8, gcc 8.5.0-3.el8, gcc-c++ 8.5.0-3.el8, gcc-gfortran 8.5.0-3.el8, gcc-gdb-plugin 8.5.0-3.el8, gcc-offload-nvptx 8.5.0-3.el8 Red Hat Enterprise Linux BaseOS (v. 8) gcc 8.5.0-3.el8, libgcc 8.5.0-3.el8, libitm 8.5.0-3.el8, libasan 8.5.0-3.el8, libgomp 8.5.0-3.el8, liblsan 8.5.0-3.el8, +7 morefixed: vendor fix RHSA-2021:4386
-
Red Hat Enterprise Linux 7 gdb, gdb-gdbserver Red Hat Enterprise Linux 8 gdb, gdb-headless, gdb-gdbservernot 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.64% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- sourceware.org https://sourceware.org/bugzilla/show_bug.cgi?id=24039 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/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
References
-
sourceware.org
/bugzilla/show_bug.cgi?id=24039
exploit, issue-tracking, third-party-advisory
-
securityfocus.com
/bid/106454
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2018-20673
- NVD CVE-2018-20673
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.