Integer Overflow or Wraparound Affecting cpp package, versions <0:8.5.0-3.el8.alma


Severity

Recommended
low

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX8-CPP-5655909
  • published28 May 2023
  • disclosed9 Nov 2021

Introduced: 9 Nov 2021

CVE-2018-20673  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:8 cpp to version 0:8.5.0-3.el8.alma or higher.
This issue was patched in ALSA-2021:4386.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cpp package and not the cpp package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 relevant fixed versions and status.

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.