Vim
Vim: Arbitrary Ex Command Execution in C Omni-Completion
Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim constructs and executes a vimgrep command using an insufficiently escaped typeref: or typename: value from a tags file, allowing an unterminated collection followed by a command separator to execute arbitrary Ex and operating-system commands when a user invokes C omni-completion with CTRL-X CTRL-O on a member access whose type is resolved from that tags file. This issue is fixed in version 9.2.0845.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
vim vim
- < 9.2.0845
Fixed in 9.2.0845
Mitigation
Upgrade vim to 9.2.0845 or later.
References
- Vendor advisory github.com/vim/vim/security/advisories/GHSA-cx…
- Patch github.com/vim/vim/commit/2f628d8104958fa74216…
- Release notes github.com/vim/vim/releases/tag/v9.2.0845
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.