JLSEC-2026-1872: Command Injection
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0479
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of Vim on Unix-like systems are exposed when they decompress .tgz archives through the affected tar#Vimuntar() functionality. The identified affected software entry is julia/vim_jll.
What must an attacker do to exploit it?
An attacker needs to provide a crafted .tgz archive filename and have a user decompress that archive in Vim. Exploitation relies on Vim command-line special expansion in the filename and results in shell-command execution in the user's context.
Are default configurations affected?
The provided data does not establish whether the vulnerable archive-decompression path is enabled or reached in a default configuration. The issue is specifically triggered when decompressing .tgz archives using the affected Vim functionality on Unix-like systems.
What version contains the fix?
The vulnerability is fixed in Vim 9.2.0479. Versions prior to 9.2.0479 are affected according to the provided information.