{"id":"CVE-2022-4141","published":"2022-11-25T00:00:00Z","modified":"2025-11-03T20:35:07Z","title":"Heap-based Buffer Overflow in vim/vim","vendor":"vim","product":"vim/vim","tier":"tail","description":{"text":"Heap based buffer overflow in vim/vim 9.0.0946 and below by allowing an attacker to CTRL-W gf in the expression used in the RHS of the substitute command.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00474,"percentile":0.41833,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f","tags":[]},{"url":"https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202305-16","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","tags":[]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":8.37},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim/vim","versions":[">= unspecified, < 9.0.0947"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T15:27:43.792529Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-51503","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2022-1796","parents":[{"from":"CVE-2022-1796","to":"CVE-2022-4141","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/window.c"],"commits":["https://github.com/vim/vim/commit/28d032cc688ccfda18c5bbcab8b50aba6e18cde5","https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5"],"basis":"shared function","functions":["do_window"]}]},{"from":"CVE-2022-1897","to":"CVE-2022-4141","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/normal.c"],"commits":["https://github.com/vim/vim/commit/338f1fc0ee3ca929387448fe464579d6113fa76a","https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5"],"basis":"shared function","functions":["normal_cmd","nv_gotofile"]}]}]}}