CVE-2021-4136
published 2021-12-19CVE-2021-4136: Heap-based Buffer Overflow in vim/vim vim is vulnerable to Heap-based Buffer Overflow
high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.83%
76.2th percentile
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | macos_big_sur | — | — |
| apple | macos_monterey | — | — |
| apple | security_update_2022-005_catalina | — | — |
| debian | vim | < vim 2:8.2.3995-1 (bookworm) | vim 2:8.2.3995-1 (bookworm) |
| msrc | cbl2_vim_8.2.4081-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_8.2.3668-4_on_cbl_mariner_1.0 | — | — |
| vim | vim_vim | >= unspecified < 8.2.3846 | 8.2.3846 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.3HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
cvelistv57.8HIGH
vendor_debian7.8LOW
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
CVEList
Heap-based Buffer Overflow in vim/vim
cvelistv5·2021-12-19·CVSS 7.8
CVE-2021-4136 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Apple
CVE-2021-4136: Security Update 2022-005 Catalina
vendor_apple·2022-07-20·CVSS 7.8
CVE-2021-4136 [HIGH] CVE-2021-4136: Security Update 2022-005 Catalina
Apple Security Update: About the security content of Security Update 2022-005 Catalina
Product: Security Update 2022-005 Catalina
CVE: CVE-2021-4136
Component: CVE-2021-4136
Apple
CVE-2021-4136: macOS Big Sur 11.6.6
vendor_apple·2022-05-16·CVSS 7.8
CVE-2021-4136 [HIGH] CVE-2021-4136: macOS Big Sur 11.6.6
Apple Security Update: About the security content of macOS Big Sur 11.6.6
Product: macOS Big Sur
Version: 11.6.6
CVE: CVE-2021-4136
Component: CVE-2021-4136
Apple
CVE-2021-4136: macOS Monterey 12.3
vendor_apple·2022-03-14·CVSS 7.8
CVE-2021-4136 [HIGH] CVE-2021-4136: macOS Monterey 12.3
Apple Security Update: About the security content of macOS Monterey 12.3
Product: macOS Monterey
Version: 12.3
CVE: CVE-2021-4136
Component: CVE-2021-4136
Red Hat
vim: heap-based buffer overflow in eval_lambda() in src/eval.c
vendor_redhat·2021-12-19·CVSS 7.8
CVE-2021-4136 [HIGH] CWE-119 vim: heap-based buffer overflow in eval_lambda() in src/eval.c
vim: heap-based buffer overflow in eval_lambda() in src/eval.c
vim is vulnerable to Heap-based Buffer Overflow
A flaw was found in vim. A possible heap-based buffer overflow could allow an attacker to input a specially crafted file leading to a crash or code execution.
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
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2021-12-14·CVSS 7.8
CVE-2021-4136 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft
Debian
CVE-2021-4136: vim - vim is vulnerable to Heap-based Buffer Overflow
vendor_debian·2021·CVSS 7.8
CVE-2021-4136 [HIGH] CVE-2021-4136: vim - vim is vulnerable to Heap-based Buffer Overflow
vim is vulnerable to Heap-based Buffer Overflow
Scope: local
bookworm: resolved (fixed in 2:8.2.3995-1)
bullseye: open
forky: resolved (fixed in 2:8.2.3995-1)
sid: resolved (fixed in 2:8.2.3995-1)
trixie: resolved (fixed in 2:8.2.3995-1)
No detection rules found.
No public exploits indexed.
2021-12-19
Published