OS Command Injection in Vim - #VU166522

 

OS Command Injection in Vim - #VU166522

Published: November 18, 2026


Vulnerability identifier: #VU166522
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-78
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands with the privileges of the user running Vim.

The vulnerability exists due to improper neutralization of shell metacharacters in Vim's runtime/autoload/csscomplete.vim when CSS omni-completion passes unescaped @import filenames to glob() on Unix-like systems with filetype plugins enabled. A remote attacker can trick a victim into opening a CSS file containing backticks in an @import filename and invoking omni-completion (CTRL-X CTRL-O) after that value to execute embedded shell commands.


Affected software

Vim

Remediation

Install security update from vendor's website.

Vim - update to 9.2.1342

External References

Related Security Bulletins