Gentoo Logo

grep: User-assisted execution of arbitrary code


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201403-07 / grep
Release Date March 26, 2014
Latest Revision March 26, 2014: 1
Impact normal
Exploitable local, remote
Package Vulnerable versions Unaffected versions Architecture(s)
sys-apps/grep < 2.12 >= 2.12 All supported architectures

Related bugreports: #448246


A vulnerability in grep could result in execution of arbitrary code or Denial of Service.

2.  Impact Information


grep is the GNU regular expression matcher.


An integer overflow flaw has been discovered in grep.


An attacker could entice a user to run grep on a specially crafted file, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

3.  Resolution Information


There is no known workaround at this time.


All grep users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=sys-apps/grep-2.12"

4.  References


Page updated March 26, 2014

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.