High severity · published Dec 25, 2021
CVE-2021-4166
Out-of-bounds Read in vim/vim
7.1
CVSS
1.7%
EPSS
No
On KEV
Description
vim is vulnerable to Out-of-bounds Read
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.7% · higher than 77% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
macOS · Apple
before 12.3; 11.0 before 11.6.6; 10.15.7 · source: NVD
VI
vim/vim · vim
before 8.2 · source: vendor
DL
Debian Linux · Debian
9.0; 10.0; 11.0 · source: NVD
EL
Enterprise Linux · Redhat
8.0 · source: NVD
FA
Factory · Opensuse
All versions, or not specified · source: NVD
FE
Fedora · Fedoraproject
34; 35 · source: NVD
LE
Linux Enterprise · Suse
12.0; 15.0 · source: NVD
MO
Mac OS X · Apple
10.15.7; 10.15.7; 10.15.7; 10.15.7; 10.15.7; 10.15.7; +7 more · source: NVD
VI
Vim · Vim
before 8.2.3884 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-4166
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-4166
Mailing List
http://seclists.org/fulldisclosure/2022/Jul/14
Mailing List
http://seclists.org/fulldisclosure/2022/Mar/29
Mailing List
http://seclists.org/fulldisclosure/2022/May/35
Mailing List
http://www.openwall.com/lists/oss-security/2022/01/15/1
Patch
https://github.com/vim/vim/commit/6f98371532fcff911b462d51bc64f2ce8a6ae682
Exploit
https://huntr.dev/bounties/229df5dd-5507-44e9-832c-c70364bdf035
More from macOS
10.0
CVE-2025-43300
Apple iOS, iPadOS, and macOS Out-of-Bounds Write Vulnerability
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2025-24085
Apple Multiple Products Use-After-Free Vulnerability
9.8
CVE-2026-65400
Apple macOS Improper Authentication Vulnerability
9.8
CVE-2025-31200
Apple Multiple Products Memory Corruption Vulnerability
