OS Command Injection in Vim - #VU154174

 

OS Command Injection in Vim - #VU154174

Published: October 13, 2026


Vulnerability identifier: #VU154174
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-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands in the context of the user running Vim.

The vulnerability exists due to improper neutralization of special elements used in an OS command in runtime/syntax/rmd.vim when processing code chunk language names in R Markdown or Quarto files. A remote attacker can trick the victim into opening a crafted file containing a language name with an overlong UTF-8 encoding of NUL and backticks, bypassing filtering before the name reaches globpath() for shell expansion, to execute arbitrary commands.

Exploitation requires a Unix-like system, enabled syntax highlighting, and dynamic fenced-language detection, which is enabled by default through g:rmd_dynamic_fenced_languages.


Affected software

Vim

Remediation

Install security update from vendor's website.

Vim - update to 9.2.1178

External References

Related Security Bulletins