CVE-2008-4101
Vim < 7.2.010 - Arbitrary Command Execution via K Keystroke
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2008-4101. PoCs published by Ben Schmidt.
AI-analyzed exploit summary This exploit leverages Vim's insufficient sanitization of user-supplied data in modelines to execute arbitrary commands. By crafting specific 'iskeyword' settings and placing the cursor on a command, an attacker can trigger command execution when the 'K' key is pressed.
Description
Vim 3.0 through 7.x before 7.2.010 does not properly escape characters, which allows user-assisted attackers to (1) execute arbitrary shell commands by entering a K keystroke on a line that contains a ";" (semicolon) followed by a command, or execute arbitrary Ex commands by entering an argument after a (2) "Ctrl-]" (control close-square-bracket) or (3) "g]" (g close-square-bracket) keystroke sequence, a different issue than CVE-2008-2712.
Exploits (1)
This exploit leverages Vim's insufficient sanitization of user-supplied data in modelines to execute arbitrary commands. By crafting specific 'iskeyword' settings and placing the cursor on a command, an attacker can trigger command execution when the 'K' key is pressed.