CVE-2012-5667

GNU Grep < 2.11 - Remote Code Execution via Integer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2012-5667. PoCs published by Joshua Rogers.

AI-analyzed exploit summary The exploit demonstrates an integer overflow vulnerability in Grep <2.11, causing a segmentation fault via crafted input. It provides two methods to trigger the bug using Perl-generated strings.

Description

Multiple integer overflows in GNU Grep before 2.11 might allow context-dependent attackers to execute arbitrary code via vectors involving a long input line that triggers a heap-based buffer overflow.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Joshua Rogers · textdoslinux
https://www.exploit-db.com/exploits/23779

The exploit demonstrates an integer overflow vulnerability in Grep <2.11, causing a segmentation fault via crafted input. It provides two methods to trigger the bug using Perl-generated strings.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: Grep <2.11
No auth needed
Prerequisites: Local access to a system with vulnerable Grep version
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2015-1447.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/57033
Issue Tracking x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=889935
Various Sources mailing-list x_refsource_mlist
http://lists.gnu.org/archive/html/bug-grep/2012-12/msg00004.html
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2012/12/22/6

Scores

EPSS 0.0102
EPSS Percentile 58.9%

Details

CWE
CWE-189
Status published
Products (17)
gnu/grep 2.2
gnu/grep 2.3
gnu/grep 2.4
gnu/grep 2.4.1
gnu/grep 2.4.2
gnu/grep 2.5
gnu/grep 2.5.1 (2 CPE variants)
gnu/grep 2.5.3
gnu/grep 2.5.4
gnu/grep 2.6
... and 7 more
Published Jan 03, 2013
Tracked Since Feb 18, 2026