libiberty: Integer overflow in demangle_template() function
Published Jan 4, 2019
5.5
MEDIUMCVSS 3.0
EPSS 1.64%
Description
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 8
gcc-0:8.5.0-3.el8
Fixed · RHSA-2021:4386
Red Hat Enterprise Linux 8
gcc-0:8.5.0-3.el8
Fixed · RHSA-2021:4386
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
Not affected
Red Hat Enterprise Linux 8
binutils
Will not fix
Red Hat Enterprise Linux 8
gdb
Not affected
Red Hat Enterprise Linux 8
mingw-binutils
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | gcc-0:8.5.0-3.el8 | Fixed | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-0:8.5.0-3.el8 | Fixed | RHSA-2021:4386 |
| 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 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | gdb | Not affected | 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 issue did not affect the versions of gdb as shipped with Red Hat Enterprise Linux 7 and with Red Hat Developer Toolset 7 and 8 as they are compiled only for 64bit architectures, where the flaw is not present. This vulnerability has been rated as Low severity for Red Hat Enterprise Linux 8, as the circumstances to exploit are particularly unlikely. A crafted binary file must be passed to one of the affected tools, in a 32-bit environment, and in a scenario where the corrupted file comes from an untrusted source. In 64 bit environments, exploitation is not possible.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/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:L/I:L/A:L
AV:N/AC:M/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 v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.64% (0.01637) | 75.47th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.64% (0.01637) | 73.17th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.04% (0.00045) | 16.06th | v3 (v2023.03.01) |
| Apr 18, 2024 | 0.04% (0.00045) | 14.15th | v3 (v2023.03.01) |
| Jan 16, 2024 | 0.04% (0.00045) | 12.13th | v3 (v2023.03.01) |
| Jun 2, 2023 | 0.06% (0.00064) | 26.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.09% (0.00091) | 37.41th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.62% (0.00624) | 17.80th | v1 |
| Jan 6, 2022 | 0.62% (0.00624) | 17.24th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (6)
- http://www.securityfocus.com/bid/106454 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-20673 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1664709 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2018-20673
- https://sourceware.org/bugzilla/show_bug.cgi?id=24039 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-20673
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/106454 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-20673 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1664709 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-20673 | ||
| https://sourceware.org/bugzilla/show_bug.cgi?id=24039 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-20673 |
Change history (0)
No recorded changes yet.