{"id":"CVE-2022-2522","published":"2022-07-25T00:00:00Z","modified":"2026-10-08T21:03:08Z","title":"Heap-based Buffer Overflow in vim/vim","vendor":"vim","product":"vim/vim","tier":"tail","description":{"text":"Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00581,"percentile":0.48652,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22","tags":[]},{"url":"https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089","tags":[]},{"url":"https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889e","tags":[]},{"url":"https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22/","tags":[]},{"url":"https://security.gentoo.org/glsa/202305-16","tags":["vendor-advisory"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.73},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim/vim","versions":[">= unspecified, < 9.0.0061"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-08T20:53:02.972104Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-34779","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","parents":[{"from":"CVE-2022-0696","to":"CVE-2022-2522","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/proto/window.pro"],"commits":["https://github.com/vim/vim/commit/0f6e28f686dbb59ab3b562408ab9b2234797b9b1","https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089","https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889e"],"basis":"rarely changed file"}]},{"from":"CVE-2022-2343","to":"CVE-2022-2522","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/insexpand.c"],"commits":["https://github.com/vim/vim/commit/caea66442d86e7bbba3bf3dc202c3c0d549b9853","https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089","https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889e"],"basis":"shared function","functions":["ins_compl_infercase_gettext"]},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}],"children":[{"from":"CVE-2022-2522","to":"CVE-2024-43374","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/proto/window.pro"],"commits":["https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089","https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889e","https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8"],"basis":"rarely changed file"}]}]}}