{"id":"CVE-2022-2862","published":"2022-08-17T00:00:00Z","modified":"2026-11-02T21:59:59Z","title":"Use After Free in vim/vim","vendor":"vim","product":"vim/vim","tier":"tail","description":{"text":"Use After Free in GitHub repository vim/vim prior to 9.0.0221.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00966,"percentile":0.62553,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://huntr.dev/bounties/71180988-1ab6-4311-bca8-e9a879b06765","tags":[]},{"url":"https://github.com/vim/vim/commit/1889f499a4f248cd84e0e0bf6d0d820016774494","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202305-16","tags":["vendor-advisory"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":12.51},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim/vim","versions":[">= unspecified, < 9.0.0221"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T21:59:52.606037Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-35096","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","parents":[{"from":"CVE-2021-4173","to":"CVE-2022-2862","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/vim9compile.c"],"commits":["https://github.com/vim/vim/commit/9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04","https://github.com/vim/vim/commit/1889f499a4f248cd84e0e0bf6d0d820016774494"],"basis":"shared function","functions":["compile_nested_function"]},{"kind":"similar","provenance":"machine","score":0.78,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2022-0156","to":"CVE-2022-2862","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/vim9compile.c"],"commits":["https://github.com/vim/vim/commit/9f1a39a5d1cd7989ada2d1cb32f97d84360e050f","https://github.com/vim/vim/commit/1889f499a4f248cd84e0e0bf6d0d820016774494"],"basis":"shared function","functions":["compile_nested_function"]},{"kind":"similar","provenance":"machine","score":0.78,"basis":"same product + CWE + description similarity"}]}]}}