{"id":"CVE-2022-4141","aliases":["CVE-2022-4141"],"related":[],"kind":"vulnerability","state":"published","title":"Heap-based Buffer Overflow in vim/vim","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Desbordamiento de búfer basado en vim/vim 9.0.0946 y versiones anteriores al permitir que un atacante presione CTRL-W gf en la expresión utilizada en el RHS del comando sustituto.","source":"nvd"}],"published":"2022-11-25T00:00:00.000Z","modified":"2026-09-24T15:38:26.440Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"9.0.0947","status":"affected"}],"vendor":"vim","product":"vim/vim","source":"cvelist"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.10.0"}],"vendor":"neovim","product":"neovim","cpe":"cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"9.0.0946"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"36"},{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f","tags":["exploit","issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202305-16","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntrdev","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-14T15:27:43.792Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-4141","url":"https://www.cve.org/CVERecord?id=CVE-2022-4141","licence":"CVE Terms of Use","modified":"2025-11-03T20:35:07.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-4141","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4141","licence":"Public domain","modified":"2026-09-24T15:38:26.440Z"}],"updatedAt":"2026-11-25T22:58:16.936Z","epss":{"score":0.00474,"percentile":0.42617,"date":"2026-12-01T12:00:22.000Z"}}