RCE in Vim
CVE-2026-46483
Vim is an open source, command line text editor. Prior to 9.2.0479, a command injection vulnerability exists in tar#Vimuntar() in
runtime/autoload/tar.vim when decompressing .tgz archives on Unix-like systems. The function builds :!gunzip and :!gzip -d commands using shellescape(tartail) without the {special} flag, allowing a crafted archive filename to trigger Vim cmdline-special expansion and execute shell commands in the user's context. This vulnerability is fixed in 9.2.0479.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.6 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.006, 46.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Vim — versions < 9.2.479
Weakness classification (CWE)
References
- github.com/vim/vim/commit/3fb5e58fbc63d86a3e65f1a141b0d67af2aa38a1 (Patch)
- github.com/vim/vim/releases/tag/v9.2.0479 (Product)
- github.com/vim/vim/security/advisories/GHSA-2fpv-9ff7-xg5w (Patch, Vendor Advisory)