Vulnerabilities · 2022 · Vim
CVE-2022-4141
Vim vulnerability
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 products
Vim, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vim runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5 · Patch
- huntr.dev/bounties/20ece512-c600-45ac-8a84-d0931e05541f · Exploit
- lists.debian.org/debian-lts-announce/2023/06/msg00015.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V
- security.gentoo.org/glsa/202305-16
- lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- nvd.nist.gov/vuln/detail/CVE-2022-4141
- cve.org/CVERecord?id=CVE-2022-4141
More vulnerabilities in Vim products
CVE-2025-66476CVE-2025-55158CVE-2025-55157CVE-2025-53906CVE-2025-53905CVE-2025-29768CVE-2025-27423CVE-2025-26603All 205
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.