High severity · published Dec 29, 2021
CVE-2021-4187
vim is vulnerable to Use After Free
7.8
CVSS
1.7%
EPSS
No
On KEV
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.7% · higher than 78% 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
FE
Fedora · Fedoraproject
34; 35 · 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
through 8.2.3912 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-4187
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-4187
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/4bf1006cae7e87259ccd5219128c3dba75774441
Exploit
https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e
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
