grep: Integer overflow leading to heap-based buffer-overflow when reading large lines
Published Jan 3, 2013
4.4
MEDIUMCVSS 2.0
EPSS 1.02%
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.
Affected products
No data.
- ≤ 2.10
- 2.2
- 2.3
- 2.4
- 2.4.1
- 2.4.2
- 2.5
- 2.5.1
- 2.5.1
- 2.5.3
- 2.5.4
- 2.6
- 2.6.1
- 2.6.2
- 2.6.3
- 2.7
- 2.8
- 2.9
No data.
Red Hat Enterprise Linux 6
grep-0:2.20-3.el6
Fixed · RHSA-2015:1447
Red Hat Enterprise Linux 5
grep
Not affected
Red Hat Enterprise Linux 7
grep
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | grep-0:2.20-3.el6 | Fixed | RHSA-2015:1447 |
| Red Hat Enterprise Linux 5 | grep | Not affected | n/a |
| Red Hat Enterprise Linux 7 | grep | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the version of grep as shipped with Red Hat Enterprise Linux 5.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:L/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.02% (0.01022) | 62.12th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.02% (0.01022) | 58.79th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.38% (0.01375) | 78.48th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.50% (0.02502) | 75.57th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.38% (0.01375) | 78.94th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.72% (0.00720) | 81.25th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.73% (0.00725) | 80.05th | v3 (v2023.03.01) |
| May 29, 2023 | 0.73% (0.00725) | 77.91th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.64% (0.00637) | 75.87th | v3 (v2023.03.01) |
| Mar 6, 2023 | 10.80% (0.10804) | 94.68th | v2 (v2022.01.01) |
| Dec 17, 2022 | 10.80% (0.10804) | 94.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 9.53% (0.09534) | 93.73th | v2 (v2022.01.01) |
| Feb 4, 2022 | 9.53% (0.09534) | 87.16th | v2 (v2022.01.01) |
References (12)
- http://git.savannah.gnu.org/cgit/grep.git/commit/?id=8fcf61523644df42e1905c81bed26838e0b04f91 x_refsource_CONFIRMPatch
- http://git.savannah.gnu.org/cgit/grep.git/commit/?id=cbbc1a45b9f843c811905c97c90a5d31f8e6c189 x_refsource_CONFIRMPatch
- http://git.sv.gnu.org/gitweb/?p=grep.git%3Ba=shortlog%3Bh=v2.11 x_refsource_CONFIRM
- http://lists.gnu.org/archive/html/bug-grep/2012-12/msg00004.html mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2012/12/22/6 mailing-listx_refsource_MLIST
- http://rhn.redhat.com/errata/RHSA-2015-1447.html vendor-advisoryx_refsource_REDHAT
- http://www.securityfocus.com/bid/57033 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2012-5667 Vendor Advisory
- https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1091473 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=889935 x_refsource_CONFIRMIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2012-5667
- https://www.cve.org/CVERecord?id=CVE-2012-5667
| Link | Providers | Tags |
|---|---|---|
| http://git.savannah.gnu.org/cgit/grep.git/commit/?id=8fcf61523644df42e1905c81bed26838e0b04f91 | x_refsource_CONFIRMPatch | |
| http://git.savannah.gnu.org/cgit/grep.git/commit/?id=cbbc1a45b9f843c811905c97c90a5d31f8e6c189 | x_refsource_CONFIRMPatch | |
| http://git.sv.gnu.org/gitweb/?p=grep.git%3Ba=shortlog%3Bh=v2.11 | x_refsource_CONFIRM | |
| http://lists.gnu.org/archive/html/bug-grep/2012-12/msg00004.html | mailing-listx_refsource_MLIST | |
| http://openwall.com/lists/oss-security/2012/12/22/6 | mailing-listx_refsource_MLIST | |
| http://rhn.redhat.com/errata/RHSA-2015-1447.html | vendor-advisoryx_refsource_REDHAT | |
| http://www.securityfocus.com/bid/57033 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2012-5667 | Vendor Advisory | |
| https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1091473 | x_refsource_CONFIRM | |
| https://bugzilla.redhat.com/show_bug.cgi?id=889935 | x_refsource_CONFIRMIssue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2012-5667 | ||
| https://www.cve.org/CVERecord?id=CVE-2012-5667 |
Change history (0)
No recorded changes yet.