Eval Injection in Vim - #VU154175

 

Eval Injection in Vim - #VU154175

Published: October 13, 2026


Vulnerability identifier: #VU154175
CSH Severity: High
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-95
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary Ruby code and operating-system commands in the context of the user running Vim.

The vulnerability exists due to improper neutralization of directives in dynamically evaluated code in runtime/autoload/rubycomplete.vim when evaluating buffer-derived variable types during Ruby omni-completion. A remote attacker can trick the victim into opening a crafted Ruby file containing an expression where a class name is expected and invoking omni-completion to execute arbitrary Ruby code and operating-system commands.

Exploitation requires Vim to be built with the Ruby interface (+ruby or +ruby/dyn) and filetype plugins to be enabled. The vulnerable code path is reachable in the default configuration regardless of the g:rubycomplete_buffer_loading setting. Opening the file alone does not trigger exploitation.


Affected software

Vim

Remediation

Install security update from vendor's website.

Vim - update to 9.2.1177

External References

Related Security Bulletins