{"id":"CVE-2022-4141","state":"PUBLISHED","title":"Heap-based Buffer Overflow in vim/vim","description":"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.","publishedAt":"2022-11-25T00:00:00.000Z","updatedAt":"2025-11-03T20:35:07.051Z","severity":{"score":7.3,"label":"High","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"@huntrdev"},"assigner":"@huntrdev","products":["vim vim/vim"],"affected":[{"vendor":"vim","product":"vim/vim","versions":[{"version":"unspecified","status":"affected","lessThan":"9.0.0947","versionType":"custom"}]}],"references":["https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f","https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/","https://security.gentoo.org/glsa/202305-16","https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/4xxx/CVE-2022-4141.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-4141","state":"PUBLISHED","datePublished":"2022-11-25T00:00:00.000Z","dateUpdated":"2025-11-03T20:35:07.051Z","assignerShortName":"@huntrdev","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2022-11-25T00:00:00.000Z"},"containers":{"cna":{"title":"Heap-based Buffer Overflow in vim/vim","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vim","product":"vim/vim","versions":[{"version":"unspecified","status":"affected","lessThan":"9.0.0947","versionType":"custom"}]}],"references":[{"url":"https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f"},{"url":"https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/","name":"FEDORA-2022-1e14f3ae45","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/","name":"FEDORA-2022-fc4c513d06","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202305-16","name":"GLSA-202305-16","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html","name":"[debian-lts-announce] 20230612 [SECURITY] [DLA 3453-1] vim security update","tags":["mailing-list"]}],"metrics":[{"cvssV3_0":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.3,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","type":"CWE","lang":"en","description":"CWE-122 Heap-based Buffer Overflow"}]}],"providerMetadata":{"shortName":"@huntrdev","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2023-06-12T00:00:00.000Z"},"source":{"advisory":"20ece512-c600-45ac-8a84-d0931e05541f","discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f","tags":["x_transferred"]},{"url":"https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AZ3JMSUCR6Y7626RDWQ2HNSUFIQOJ33G/","name":"FEDORA-2022-1e14f3ae45","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6ZNKVN4GICORTVFKVCM4MSOXCYWNHUC/","name":"FEDORA-2022-fc4c513d06","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202305-16","name":"GLSA-202305-16","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00015.html","name":"[debian-lts-announce] 20230612 [SECURITY] [DLA 3453-1] vim security update","tags":["mailing-list","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:35:07.051Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-14T15:27:43.792529Z","id":"CVE-2022-4141","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-14T17:49:51.380Z"}}]}}}