Public Date:
CWE-190 -> CWE-122
889935: CVE-2012-5667 grep: Integer overflow leading to heap-based buffer-overflow when reading large lines
An integer overflow flaw, leading to a heap-based buffer overflow, was found in the way grep parsed large lines of data. An attacker able to trick a user into running grep on a specially crafted data file could use this flaw to crash grep or, potentially, execute arbitrary code with the privileges of the user running grep.

Find out more about CVE-2012-5667 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue did not affect the version of grep as shipped with Red Hat Enterprise Linux 5.

CVSS v2 metrics

NOTE: The following CVSS v2 metrics and score provided are preliminary and subject to review.

Base Score 4.4
Base Metrics AV:L/AC:M/Au:N/C:P/I:P/A:P
Access Vector Local
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact Partial

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux version 6 (grep) RHSA-2015:1447 2015-07-20

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 7 grep Not affected
Red Hat Enterprise Linux 5 grep Not affected