Heap-based Buffer Overflow in vim/vim
Published Dec 19, 2021
7.8
HIGHCVSS 3.1
EPSS 1.83%
Description
vim is vulnerable to Heap-based Buffer Overflow
Affected products
-
- Version unspecifiedStatusaffectedConstraints<8.2.3846
- Version
Configuration 2
- 34
- 35
Configuration 3
- ≥ 10.15 · < 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- 10.15.7
- ≥ 11.0 · < 11.6.6
- ≥ 12.0 · < 12.3
No data.
Red Hat Advanced Cluster Management for Kubernetes 2
rhacm2/openshift-hive-rhel8
Not affected
Red Hat Enterprise Linux 6
vim
Not affected
Red Hat Enterprise Linux 7
vim
Not affected
Red Hat Enterprise Linux 8
vim
Not affected
Red Hat Enterprise Linux 9
vim
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/openshift-hive-rhel8 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 7 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 8 | vim | Not affected | n/a |
| Red Hat Enterprise Linux 9 | vim | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having a Low security impact, because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script and running it. Since Red Hat Enterprise Linux 6, 7 are Out-of-Support-Scope for Low/Moderate flaws, the issue is not currently planned to be addressed in future updates for RHEL-6,7. Only Important and Critical severity flaws will be addressed at this time. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/ and Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/. Here PR:L because we need minimum user privilege to run vim application/service. and A:L because impacted components are partially available, no total loss after exploitation.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
AV:N/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 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.83% (0.01831) | 78.13th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.83% (0.01831) | 76.02th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.19% (0.00189) | 38.55th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.12% (0.00116) | 47.06th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.10% (0.00099) | 40.33th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.07% (0.00068) | 27.94th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.25% (0.01247) | 30.57th | v5 (v2026.06.15) |
| Jan 7, 2022 | 0.83% (0.00833) | 23.97th | v1 |
| Jan 6, 2022 | 0.62% (0.00624) | 17.24th | v1 |
| Dec 20, 2021 | 0.62% (0.00624) | 46.02th | v1 |
References (16)
- http://seclists.org/fulldisclosure/2022/Jul/14 mailing-listx_refsource_FULLDISCMailing ListThird Party Advisory
- http://seclists.org/fulldisclosure/2022/Mar/29 mailing-listx_refsource_FULLDISCMailing ListThird Party Advisory
- http://seclists.org/fulldisclosure/2022/May/35 mailing-listx_refsource_FULLDISCMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2022/01/15/1 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-4136 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2034720 Issue Tracking
- https://github.com/vim/vim/commit/605ec91e5a7330d61be313637e495fa02a6dc264 x_refsource_MISCPatchThird Party Advisory
- https://huntr.dev/bounties/5c6b93c1-2d27-4e98-a931-147877b8c938 x_refsource_CONFIRMExploitPatchThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-4136
- https://security.gentoo.org/glsa/202208-32 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://support.apple.com/kb/HT213183 x_refsource_CONFIRMRelease NotesThird Party Advisory
- https://support.apple.com/kb/HT213256 x_refsource_CONFIRMThird Party Advisory
- https://support.apple.com/kb/HT213343 x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2021-4136
Change history (0)
No recorded changes yet.