The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU…
Priority LOW 28CWE-190Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 4 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
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.
Why it matters now
EPSS 0.01637 76th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Red Hat: 1 advisoryRed Hat: 3 fixed, 4 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2021:4386 Released 2021-11-09 · Red Hat rating Lowgcc security and bug fix update
- Red Hat CodeReady Linux Builder (v. 8) gcc-plugin-devel-8.5.0-3.el8, libstdc++-static-8.5.0-3.el8
- 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 +7
- Red Hat Enterprise Linux BaseOS (v. 8) gcc-8.5.0-3.el8, libasan-8.5.0-3.el8, libatomic-8.5.0-3.el8 +11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2021:4386 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:4386 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2021:4386 |
Not affected: 2 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-20673
- 2026-10-03 Alias added: GHSA-jx5v-cp2v-88f2
References
More GNU Binutils vulnerabilities
- TI-2020-13695 An issue was discovered in binutils libbfd.c 2.36 relating to the auxiliary symbol data… CVSS 3.1HIGH 8.8
- TI-2025-42907 GNU Binutils thru 2.46 readelf contains a double free vulnerability when processing a… CVSS 3.1HIGH 7.5
- TI-2025-41071 An issue was discovered in function d_print_comp_inner in file cp-demangle.c in BinUtils… CVSS 3.1HIGH 7.5
- TI-2025-41069 An issue was discovered in function d_discriminator in file cp-demangle.c in BinUtils… CVSS 3.1HIGH 7.5
- TI-2025-41068 A buffer overflow vulnerability in function gnu_special in file cplus-dem.c in BinUtils… CVSS 3.1HIGH 7.5
- TI-2021-21105 Heap-based Buffer Overflow in function bfd_getl32 in Binutils objdump 3.37. CVSS 3.1HIGH 7.5
Sources
- CVE-2018-20673 · CVE Program
- CVE-2018-20673 · NVD
- FIRST EPSS
- GHSA-jx5v-cp2v-88f2 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-20673 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences