CVE-2022-4141

published 25 Nov 2022 · updated 3 Nov 2025

Heap-based Buffer Overflow in vim/vim

7.3HighCVSS 7.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 9.0.0947.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
vim<9.0.09479.0.0947

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-4141 severity on Zeptric[![CVE-2022-4141](https://zeptric.io/badge/cve/CVE-2022-4141.svg)](https://zeptric.io/cve/CVE-2022-4141)