Some weaknesses have been reported in Vim, which can be exploited by malicious people to potentially compromise a user's system.
The weaknesses are caused due insufficient filtering of certain input when executing certain commands (e.g. the "K", "<C-]>, and "g]" commands), which can be exploited to execute arbitrary Vim script or shell commands.
Successful exploitation requires that the user e.g. is tricked into opening a malicious file and using the "K" command on a malicious keyword. Exploitation can also depend on certain settings like "iskeyword", which can be automatically set by malicious files if support for modelines is enabled.
The weaknesses are reported in version 3.00 to 7.2. Other versions may also be affected.
Solution: Do not use affected commands when editing untrusted files.
Provided and/or discovered by: Ben Schmidt. Additional information provided by Jan Minar (rdancer).
Original Advisory: http://www.rdancer.org/vulnerablevim-K.html
Do you have additional information related to this advisory?
Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this
information to email@example.com
Subject: Vim Shell Command Injection Weaknesses
No posts yet
You must be logged in to post a comment.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.