CVE-2012-5667

medium
Published 2013-01-03 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.4

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-23779 dos linux verified
Joshua Rogers ยท 2012-12-31

Grep < 2.11 - Integer Overflow Crash (PoC)

Source code queued for fetch โ€” refresh in a moment.

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed2.11-1
debian debianbullseyefixed2.11-1
debian debianforkyfixed2.11-1
debian debiansidfixed2.11-1
debian debiantrixiefixed2.11-1

Application impact

VendorProductVersionsFixed
gnugrep{"endIncluding":"2.10"}
gnugrep2.2
gnugrep2.3
gnugrep2.4
gnugrep2.4.1
gnugrep2.4.2
gnugrep2.5
gnugrep2.5.1
gnugrep2.5.3
gnugrep2.5.4
gnugrep2.6
gnugrep2.6.1
gnugrep2.6.2
gnugrep2.6.3
gnugrep2.7
gnugrep2.8
gnugrep2.9

References

CWEs

CWE-189

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.