CVE-2022-4141

HIGH CVSS 3.1: 7.8 EPSS 0.46%
Updated Sep 24, 2026
Vim
Parameter Value
CVSS 7.8 (HIGH)
Affected Versions 0.1.0 — 9.0.0946
Fixed In 0.10.0
Type CWE-122 (Heap-based Buffer Overflow), CWE-787 (Out-of-bounds Write)
Vendor Vim
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 6

Configuration From (including) Up to (excluding)
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
— —
Neovim Neovim
cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*
0.1.0 0.10.0
Vim Vim
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
— <= 9.0.0946
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
— —
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
— —