Vim
Vim: Command injection in tar#Vimuntar via missing shellescape {special} flag
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.0high · scored by NVD · CWE-78
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
vim vim
- < 9.2.479
Fixed in 9.2.479
Mitigation
Upgrade vim to 9.2.479 or later.
References
- Vendor advisory github.com/vim/vim/security/advisories/GHSA-2f…
- Patch github.com/vim/vim/commit/3fb5e58fbc63d86a3e65…
- Release notes github.com/vim/vim/releases/tag/v9.2.0479
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.