CVE-2021-4187
Description
vim is vulnerable to Use After Free
Severity
MEDIUM
CVSS v3
6.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H · source cna
Exploit chance (EPSS)
1.758%
chance of exploitation in the next 30 days
higher than 78.4% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-416: Use After Free
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-02 |
Timeline
- 2021-12-29Published by the CNA17:10 UTC
- 2026-11-02CISA SSVC decision recorded1769 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| vim vim | through 8.2.3912no fix listed | not listed |
| apple mac_os_x | 10.15.7no fix listed | not listed |
| apple macos | from 11.0 before 11.6.6fixed in 11.6.6before 12.3fixed in 12.310.15.7no fix listed | 11.6.612.3not listed |
| fedoraproject fedora | 34no fix listed35no fix listed | not listednot listed |
References
- https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/
- https://security.gentoo.org/glsa/202208-32
- https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e
- http://seclists.org/fulldisclosure/2022/Jul/14
- http://seclists.org/fulldisclosure/2022/Mar/29
- http://seclists.org/fulldisclosure/2022/May/35
- http://www.openwall.com/lists/oss-security/2022/01/15/1
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- https://support.apple.com/kb/HT213183
- https://support.apple.com/kb/HT213256
- https://support.apple.com/kb/HT213343
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-4187'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-4187'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-4187'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-4187'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).