CVE Database


Impact: Low
Public: 2012-12-22
CWE: CWE-190->CWE-122
Bugzilla: 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 and NIST NVD.


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

CVSS v2 metrics

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 July 20, 2015

External References

This page is generated automatically and has not been checked for errors or omissions.

For clarification or corrections please contact the Red Hat Security Response Team.