https://seclists.org/oss-sec/2026/q4/169: [vim-security] Ex Command Execution via Cargo Quickfix Hooks in Vim < 9.2.1201

Published Oct 15, 2026
·
Updated

Affected Software

1 affected component
vim Vim<9.2.1201

Frequently Asked Questions

1

What user interaction is required for exploitation?

The user must run :make in a Rust buffer while the cargo compiler is active. The quickfix pre- and post-command hooks then change directories using the nearest Cargo.toml path.

2

Who is exposed to a crafted project path?

Users who open Rust projects located in or beneath a directory with a crafted name are exposed when they invoke :make. The directory name can inject Ex commands through the unescaped :lchdir or :chdir invocation.

3

How can I determine whether my Vim installation is affected?

Vim versions earlier than 9.2.1201 are affected. The vulnerable runtime code is runtime/autoload/cargo/quickfix.vim, where the nearest Cargo.toml directory is concatenated into :lchdir! or :chdir without escaping.

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