Back to Database
Status published
High
CVE-2022-4141
Heap-based Buffer Overflow in vim/vim
Vulnerability 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.
Impact Analysis
Refer to official advisory for detailed impact metrics.
Remediation
Ensure systems are updated to the latest vendor-supplied patch levels.
THREAT MONITOR
Am I Vulnerable?
Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-4141
Credits & Attribution
No credits recorded in the NVD database.
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
More from vim
View All →CVE-2025-66476
Vim for Windows Uncontrolled Search Path Element Remote Code Execution Vulnerability
High
7.8
CVE-2025-55158
Vim double-free vulnerability during Vim9 script import operations
Medium
6.9
CVE-2025-55157
Vim heap use-after-free vulnerability when processing recursive tuple data types
Medium
6.9
CVE-2025-53906
Vim has path traversal issue with zip.vim and special crafted zip archives
Medium
4.1
CVE-2025-53905
Vim has path traversial issue with tar.vim and special crafted tar files
Medium
4.1
Affected Vendor
Affected Software
vim/vim
Vulnerable Versions:
unspecified
Timeline
Official Publish:
November 25th, 2022
Last Modified:
November 3rd, 2025
Added to House:
July 21st, 2026
CVSS Vectors
V3:
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H