CVE Database›Document archive›CVE-2012-5667

CVE-2012-5667

grep: Integer overflow leading to heap-based buffer-overflow when reading large lines

Loading…

Severity

Low

Red Hat Product Security

4.4

CVSS 2.0

Review impact separately from score.

Published · December 22, 2012

Updated · June 27, 2026

Description

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.

Statement

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

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 2.0 · 4.4
AV:L/AC:M/Au:N/C:P/I:P/A:P

CWE-190 · Integer Overflow or Wraparound