Heap-based Buffer Overflow Affecting grep package, versions <0:2.20-2.el7


Severity

Recommended
0.0
low
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.04% (6th 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-RHEL7-GREP-5095324
  • published26 Jul 2021
  • disclosed18 Jan 2015

Introduced: 18 Jan 2015

CVE-2015-1345  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade RHEL:7 grep to version 0:2.20-2.el7 or higher.
This issue was patched in RHSA-2015:2111.

NVD Description

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

The bmexec_trans function in kwset.c in grep 2.19 through 2.21 allows local users to cause a denial of service (out-of-bounds heap read and crash) via crafted input when using the -F option.

CVSS Scores

version 3.1