{"id":"CVE-2021-4173","state":"PUBLISHED","title":"Use After Free in vim/vim","description":"vim is vulnerable to Use After Free","publishedAt":"2021-12-27T12:25:12.000Z","updatedAt":"2025-11-03T20:34:01.175Z","severity":{"score":6.8,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","source":"@huntrdev"},"assigner":"@huntrdev","products":["vim vim/vim"],"affected":[{"vendor":"vim","product":"vim/vim","versions":[{"version":"unspecified","status":"affected","lessThan":"8.2","versionType":"custom"}]}],"references":["https://huntr.dev/bounties/a1b236b9-89fb-4ccf-9689-ba11b471e766","https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/","http://www.openwall.com/lists/oss-security/2022/01/15/1","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/","https://support.apple.com/kb/HT213183","http://seclists.org/fulldisclosure/2022/Mar/29","https://support.apple.com/kb/HT213256","http://seclists.org/fulldisclosure/2022/May/35","https://support.apple.com/kb/HT213343","http://seclists.org/fulldisclosure/2022/Jul/14","https://security.gentoo.org/glsa/202208-32","https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T19:49:23.890Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/4xxx/CVE-2021-4173.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-4173","state":"PUBLISHED","datePublished":"2021-12-27T12:25:12.000Z","dateUpdated":"2025-11-03T20:34:01.175Z","assignerShortName":"@huntrdev","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2021-12-26T00:00:00.000Z"},"containers":{"cna":{"title":"Use After Free in vim/vim","descriptions":[{"lang":"en","value":"vim is vulnerable to Use After Free"}],"affected":[{"vendor":"vim","product":"vim/vim","versions":[{"version":"unspecified","status":"affected","lessThan":"8.2","versionType":"custom"}]}],"references":[{"url":"https://huntr.dev/bounties/a1b236b9-89fb-4ccf-9689-ba11b471e766","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/","name":"FEDORA-2022-a3d70b50f0","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/15/1","name":"[oss-security] 20220114 Re: 3 new CVE's in vim","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/","name":"FEDORA-2022-48b86d586f","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","name":"20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3","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","name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","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","name":"20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://security.gentoo.org/glsa/202208-32","name":"GLSA-202208-32","tags":["vendor-advisory","x_refsource_GENTOO"]}],"metrics":[{"cvssV3_0":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","version":"3.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","description":"CWE-416 Use After Free","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"@huntrdev","dateUpdated":"2022-08-21T05:09:07.000Z","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a"},"source":{"advisory":"a1b236b9-89fb-4ccf-9689-ba11b471e766","discovery":"EXTERNAL"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@huntr.dev","ID":"CVE-2021-4173","STATE":"PUBLIC","TITLE":"Use After Free in vim/vim"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"vim/vim","version":{"version_data":[{"version_affected":"<","version_value":"8.2"}]}}]},"vendor_name":"vim"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"vim is vulnerable to Use After Free"}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416 Use After Free"}]}]},"references":{"reference_data":[{"name":"https://huntr.dev/bounties/a1b236b9-89fb-4ccf-9689-ba11b471e766","refsource":"CONFIRM","url":"https://huntr.dev/bounties/a1b236b9-89fb-4ccf-9689-ba11b471e766"},{"name":"https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04","refsource":"MISC","url":"https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04"},{"name":"FEDORA-2022-a3d70b50f0","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/"},{"name":"[oss-security] 20220114 Re: 3 new CVE's in vim","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2022/01/15/1"},{"name":"FEDORA-2022-48b86d586f","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/"},{"name":"https://support.apple.com/kb/HT213183","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213183"},{"name":"20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/Mar/29"},{"name":"https://support.apple.com/kb/HT213256","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213256"},{"name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/May/35"},{"name":"https://support.apple.com/kb/HT213343","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213343"},{"name":"20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/Jul/14"},{"name":"GLSA-202208-32","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202208-32"}]},"source":{"advisory":"a1b236b9-89fb-4ccf-9689-ba11b471e766","discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://huntr.dev/bounties/a1b236b9-89fb-4ccf-9689-ba11b471e766","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/","name":"FEDORA-2022-a3d70b50f0","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/15/1","name":"[oss-security] 20220114 Re: 3 new CVE's in vim","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/","name":"FEDORA-2022-48b86d586f","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://support.apple.com/kb/HT213183","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/29","name":"20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"https://support.apple.com/kb/HT213256","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/May/35","name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"https://support.apple.com/kb/HT213343","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/Jul/14","name":"20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202208-32","name":"GLSA-202208-32","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:34:01.175Z"}}]}}}