Last updated 25 August 2025
A vulnerability was found in Vim which would allow arbitrary shell commands to be run if a user opened a file with a malicious modeline. This is due to lack of validation of values for a few options. Those options' values are then used in Vim's scripts to build a command string that's evaluated by :execute, which is what allows the shell commands to be run.
Upstream patch:
https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
References:
http://seclists.org/oss-sec/2016/q4/506