binutils: excessive memory consumption in demangle_template in cplus-dem.c
Published Jun 23, 2018
7.5
HIGHCVSS 3.0
EPSS 6.61%
Description
demangle_template in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.30, allows attackers to trigger excessive memory consumption (aka OOM) during the "Create an array for saving the template argument values" XNEWVEC call. This can occur during execution of objdump.
Affected products
No data.
Configuration 2
- 16.04.4
No data.
Red Hat Enterprise Linux 5
binutils
Will not fix
Red Hat Enterprise Linux 5
binutils220
Will not fix
Red Hat Enterprise Linux 6
binutils
Will not fix
Red Hat Enterprise Linux 7
binutils
Will not fix
Red Hat Enterprise Linux 8
binutils
Will not fix
Red Hat Enterprise Linux 8
mingw-binutils
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | binutils220 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | binutils | 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 issue is classified with a low severity primarily because binutils is not typically exposed to untrusted inputs in most environments, limiting the possibility of exploitation. Additionally, this excessive memory consumption is only triggered during the parsing of a specially crafted file, requiring an attacker to convince a user to process this file with objdump. Furthermore, binutils does not handle privileged operations, meaning that exploitation is unlikely to lead to system compromise or escalation of privileges. Also, the impact is limited to the application itself, without affecting the broader system or network security.
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:L/UI:N/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 (24 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.61% (0.06606) | 93.64th | v5 (v2026.06.15) |
| Jun 24, 2026 | 6.69% (0.06690) | 93.05th | v5 (v2026.06.15) |
| Jun 15, 2026 | 5.25% (0.05252) | 91.45th | v5 (v2026.06.15) |
| Nov 21, 2025 | 1.46% (0.01455) | 80.22th | v4 (v2025.03.14) |
| Nov 18, 2025 | 3.26% (0.03261) | 85.91th | v4 (v2025.03.14) |
| May 27, 2025 | 0.75% (0.00754) | 72.03th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.17% (0.02167) | 82.80th | v4 (v2025.03.14) |
| Mar 29, 2025 | 8.16% (0.08157) | 86.72th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.17% (0.02167) | 83.16th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.51% (0.00505) | 77.24th | v3 (v2023.03.01) |
| Jun 2, 2024 | 0.51% (0.00505) | 76.45th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.51% (0.00511) | 75.91th | v3 (v2023.03.01) |
| Nov 14, 2023 | 0.51% (0.00511) | 73.89th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.73% (0.00730) | 78.20th | v3 (v2023.03.01) |
| Jun 17, 2023 | 1.23% (0.01225) | 83.44th | v3 (v2023.03.01) |
| May 8, 2023 | 1.46% (0.01456) | 84.65th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.87% (0.00869) | 79.86th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.76% (0.02762) | 82.95th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.76% (0.02762) | 81.27th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.76% (0.02762) | 62.80th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.89% (0.02888) | 63.67th | v1 |
| Jan 6, 2022 | 2.89% (0.02888) | 63.32th | v1 |
| Sep 1, 2021 | 2.89% (0.02888) | 80.75th | v1 |
| Apr 14, 2021 | 2.89% (0.02888) | 0.00th | v1 |
References (11)
- http://www.securityfocus.com/bid/104539 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-12698 Vendor Advisory
- https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1763102 x_refsource_MISCExploitThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1595419 Issue Tracking
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85454 x_refsource_MISCExploitIssue TrackingVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-12698
- https://security.gentoo.org/glsa/201908-01 vendor-advisoryx_refsource_GENTOO
- https://sourceware.org/bugzilla/show_bug.cgi?id=23057 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://usn.ubuntu.com/4326-1/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/4336-1/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2018-12698
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/104539 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-12698 | Vendor Advisory | |
| https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1763102 | x_refsource_MISCExploitThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1595419 | Issue Tracking | |
| https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85454 | x_refsource_MISCExploitIssue TrackingVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-12698 | ||
| https://security.gentoo.org/glsa/201908-01 | vendor-advisoryx_refsource_GENTOO | |
| https://sourceware.org/bugzilla/show_bug.cgi?id=23057 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://usn.ubuntu.com/4326-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://usn.ubuntu.com/4336-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://www.cve.org/CVERecord?id=CVE-2018-12698 |
Change history (0)
No recorded changes yet.