grep CVE-2012-5667 Remote Integer Overflow Vulnerability

BID:57033

Info

grep CVE-2012-5667 Remote Integer Overflow Vulnerability

Bugtraq ID: 57033
Class: Boundary Condition Error
CVE: CVE-2012-5667
Remote: Yes
Local: No
Published: Dec 17 2012 12:00AM
Updated: Jul 05 2016 09:22PM
Credit: Joshua Rogers
Vulnerable: Sun Solaris 9
Red Hat Enterprise Linux Workstation 6
Red Hat Enterprise Linux Server 6
Red Hat Enterprise Linux HPC Node 6
Red Hat Enterprise Linux Desktop 6
Gentoo Linux
Avaya 96x1 IP Deskphone 6.2
Avaya 96x1 IP Deskphone 6
Not Vulnerable:

Discussion

grep CVE-2012-5667 Remote Integer Overflow Vulnerability

grep is prone to a remote integer-overflow vulnerability.

Successful attacks will allow attackers to execute arbitrary code within the context of the application. Failed exploit attempts will result in a denial-of-service condition.

grep versions prior to 2.11 are vulnerable.

Exploit / POC

grep CVE-2012-5667 Remote Integer Overflow Vulnerability

The following proof-of-concept is available:

perl -e 'print "x"x(2**31)' | grep x > /dev/null

Solution / Fix

grep CVE-2012-5667 Remote Integer Overflow Vulnerability

Solution:
Vendor updates are available. Please see the references for more information.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report