{"id":"CVE-2021-4187","published":"2021-12-29T17:10:09Z","modified":"2026-11-02T18:10:33Z","title":"Use After Free in vim/vim","vendor":"vim","product":"vim/vim","tier":"tail","description":{"text":"vim is vulnerable to Use After Free","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01758,"percentile":0.78528,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://huntr.dev/bounties/a8bee03a-6e2e-43bf-bee3-4968c5386a2e","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/15/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://support.apple.com/kb/HT213183","tags":["x_refsource_CONFIRM"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/29","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://support.apple.com/kb/HT213256","tags":["x_refsource_CONFIRM"]},{"url":"http://seclists.org/fulldisclosure/2022/May/35","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://support.apple.com/kb/HT213343","tags":["x_refsource_CONFIRM"]},{"url":"http://seclists.org/fulldisclosure/2022/Jul/14","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://security.gentoo.org/glsa/202208-32","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","tags":[]}],"priority":{"score":20.5,"factors":[{"name":"EPSS percentile","points":15.71},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim/vim","versions":[">= unspecified, < 8.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T18:09:59.282873Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34047","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","children":[{"from":"CVE-2021-4187","to":"CVE-2022-0156","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/userfunc.c"],"commits":["https://github.com/vim/vim/commit/4bf1006cae7e87259ccd5219128c3dba75774441","https://github.com/vim/vim/commit/9f1a39a5d1cd7989ada2d1cb32f97d84360e050f"],"basis":"shared function","functions":["get_function_args"]},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}]}}