CVE-2018-20673: gnu binutils Integer Overflow or Wraparound
Vulnerability summary
CVE-2018-20673 is a medium (CVSS 5.5) Integer Overflow or Wraparound vulnerability in gnu binutils. EPSS estimates a 1.64% chance of exploitation in the next 30 days, higher than 75.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 04-01-2019PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.64%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
0.00 pp
From 1.64% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (sourceware.org)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Redhat45 products
- cpp< 0:8.5.0-3.el8
- cpp-debuginfo< 0:8.5.0-3.el8
- gcc< 0:8.5.0-3.el8
- gcc-c++< 0:8.5.0-3.el8
- gcc-c++-debuginfo< 0:8.5.0-3.el8
Debian1 product
- binutilsAll versions (No fix recorded)
Gnu1 product
- binutils2.31.1
Ubuntu1 product
- binutilsAll versions (No fix recorded)
4 vendors · 48 products
References
17 links- sourceware.org/bugzilla/show_bug.cgi?id=24039X Refsource MISCExploitIssue TrackingThird Party Advisory