CVE-2015-1345: Buffer Overflow

Published Jan 19, 2015
·
Updated

It was reported [1] that invoking grep with a carefully crafted combination of input and regexp can cause a segfault and/or reading from uninitialized memory.

Upstream bugreport: http://bugs.gnu.org/19563 Upstream fix: http://git.sv.gnu.org/cgit/grep.git/commit/?id=83a95bd8c8561875b948cadd417c653dbe7ef2e2

[1]: http://seclists.org/oss-sec/2015/q1/179

Other sources

The bmexectrans 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.

— MITRE

Affected Software

4 affected components
GNU Grep=2.19
GNU Grep=2.20
GNU Grep=2.21
openSUSE openSUSE=13.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade grep to a version that resolves this vulnerability.

    Patch 83a95bd8c8561875b948cadd417c653dbe7ef2e2

Event History

Jan 19, 2015
Data Sourced
via Red Hat·11:56 AM
DescriptionSeverityAffected Software
Feb 12, 2015
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Data Sourced
04:59 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-1345?

CVE-2015-1345 is classified as a denial of service vulnerability, allowing local users to cause a crash.

2

How do I fix CVE-2015-1345?

To fix CVE-2015-1345, upgrade GNU Grep to version 2.22 or later.

3

Which versions of grep are affected by CVE-2015-1345?

CVE-2015-1345 affects GNU Grep versions 2.19 through 2.21.

4

Can CVE-2015-1345 be exploited remotely?

No, CVE-2015-1345 requires local user access to exploit.

5

What happens if I don't address CVE-2015-1345?

If not addressed, CVE-2015-1345 could lead to application crashes due to crafted input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203