WS-2026-0028
Published:August 25, 2026
Updated:August 26, 2026
Vim before 9.2.1011 does not escape the bar character in tags file names returned by tagfiles(). The C omni-completion script runtime/autoload/ccomplete.vim builds a :vimgrep command from those names and runs it via :execute, so a tags file path containing a bar can terminate the search pattern and append arbitrary Ex commands, which are executed as the user running Vim.
Affected Packages
https://github.com/vim/vim.git (GITHUB):
Affected version(s) >=v9.0.0000 <v9.2.1011Fix Suggestion:
Update to version v9.2.1011Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')