https://seclists.org/oss-sec/2026/q4/139: [vim-security] Command Execution via Rmd Syntax Highlighting in Vim < 9.2.1178

Published Oct 12, 2026
·
Updated

Affected Software

1 affected component
vim Vim<9.2.1178

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Unix users of affected Vim versions who open untrusted R Markdown files are exposed when Vim processes Rmd syntax highlighting. A crafted code-chunk language name can cause text from the file to reach a shell-interpreted glob pattern.

2

Is the vulnerable behavior enabled by default?

Yes. The affected code path is used with the default g:rmd_dynamic_fenced_languages setting, which dynamically processes language names found in fenced code chunks.

3

What does an attacker need to do to trigger it?

The attacker needs to provide a crafted R Markdown file containing a code chunk whose language name includes a byte sequence that causes the regular-expression sanitization to stop early. Opening that file in Vim can then lead to arbitrary command execution on Unix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203