RCE in Vim
CVE-2026-41411
Vim is an open source, command line text editor. Prior to 9.2.0357, A command injection vulnerability exists in Vim's tag file processing. When resolving a tag, the filename field from the tags file is passed through wildcard expansion to resolve environment variables and wildcards. If the filename field contains backtick syntax (e.g., `command`), Vim executes the embedded command via the system shell with the full privileges of the running user.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.6 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L.
EPSS exploit prediction
EPSS 0.005, 43.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Vim — versions < 9.2.0357
Weakness classification (CWE)
References
- github.com/vim/vim/security/advisories/GHSA-cwgx-gcj7-6qh8 (Patch, Vendor Advisory)
- github.com/vim/vim/commit/c78194e41d5a0b05b0ddf383b6679b1503f977fb (Patch)
- github.com/vim/vim/releases/tag/v9.2.0357 (Product)