libiberty: Memory leak in demangle_template function resulting in a denial of service
Published Jan 2, 2019
7.5
HIGHCVSS 3.0
EPSS 4.04%
Description
The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, has a memory leak via a crafted string, leading to a denial of service (memory consumption), as demonstrated by cxxfilt, a related issue to CVE-2018-12698.
Affected products
No data.
Configuration 2
- ≥ 5.0.0 · ≤ 5.1.0
- 4.4.0
No data.
Red Hat Enterprise Linux 8
gdb-0:8.2-6.el8
Fixed · RHSA-2019:3352
Red Hat Enterprise Linux 5
binutils
Will not fix
Red Hat Enterprise Linux 5
gcc
Will not fix
Red Hat Enterprise Linux 5
gdb
Will not fix
Red Hat Enterprise Linux 6
binutils
Will not fix
Red Hat Enterprise Linux 6
gcc
Will not fix
Red Hat Enterprise Linux 6
gdb
Will not fix
Red Hat Enterprise Linux 7
binutils
Will not fix
Red Hat Enterprise Linux 7
gcc
Will not fix
Red Hat Enterprise Linux 7
gdb
Will not fix
Red Hat Enterprise Linux 8
binutils
Will not fix
Red Hat Enterprise Linux 8
gcc
Will not fix
Red Hat Enterprise Linux 8
mingw-binutils
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | gdb-0:8.2-6.el8 | Fixed | RHSA-2019:3352 |
| Red Hat Enterprise Linux 5 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | gdb | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gdb | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gdb | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | mingw-binutils | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This vulnerability is rated as low severity because it results in a memory leak that can cause the application to crash, it may impact performance, it does not pose a significant risk to system.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (23 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.04% (0.04037) | 90.29th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.00% (0.04004) | 89.17th | v5 (v2026.06.15) |
| Nov 21, 2025 | 0.26% (0.00260) | 49.25th | v4 (v2025.03.14) |
| Nov 18, 2025 | 1.69% (0.01689) | 80.72th | v4 (v2025.03.14) |
| Mar 30, 2025 | 0.60% (0.00599) | 66.91th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.02% (0.02024) | 72.97th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.60% (0.00599) | 67.58th | v4 (v2025.03.14) |
| Dec 17, 2024 | 0.14% (0.00137) | 49.68th | v3 (v2023.03.01) |
| Jun 15, 2024 | 0.36% (0.00356) | 72.17th | v3 (v2023.03.01) |
| May 25, 2024 | 0.43% (0.00425) | 74.28th | v3 (v2023.03.01) |
| Mar 7, 2024 | 0.44% (0.00439) | 74.24th | v3 (v2023.03.01) |
| Jan 31, 2024 | 0.44% (0.00439) | 72.23th | v3 (v2023.03.01) |
| Dec 27, 2023 | 0.31% (0.00310) | 66.82th | v3 (v2023.03.01) |
| May 31, 2023 | 0.37% (0.00369) | 68.56th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.39% (0.00388) | 69.01th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.29% (0.01294) | 30.79th | v1 |
| Jan 6, 2022 | 1.29% (0.01294) | 30.15th | v1 |
| Sep 1, 2021 | 1.29% (0.01294) | 69.02th | v1 |
| Apr 14, 2021 | 1.29% (0.01294) | 0.00th | v1 |
References (8)
- http://www.securityfocus.com/bid/106444 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2019:3352 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-20657 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1664708 Issue Tracking
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88539 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-20657
- https://support.f5.com/csp/article/K62602089 x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-20657
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/106444 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2019:3352 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2018-20657 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1664708 | Issue Tracking | |
| https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88539 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-20657 | ||
| https://support.f5.com/csp/article/K62602089 | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-20657 |
Change history (0)
No recorded changes yet.