Vulnerabilities · 2008 · Vim
CVE-2008-4101
Vim vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Vim. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vim runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- groups.google.com/group/vim_dev/attach/dd32ad3a84f36bb2/K-arbitrary-command-execution.patc · Patch
- groups.google.com/group/vim_dev/msg/9290f26f9bc11b33 · Patch
- ftp.vim.org/pub/vim/patches/7.2/7.2.010 · Exploit
- groups.google.com/group/vim_dev/browse_thread/thread/1434d0812b5c817e/6ad2d5b50a96668e · Exploit
- groups.google.com/group/vim_dev/attach/9290f26f9bc11b33/K-arbitrary-command-execution.patc
- lists.apple.com/archives/security-announce/2008/Oct/msg00001.html
- lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- secunia.com/advisories/31592
- nvd.nist.gov/vuln/detail/CVE-2008-4101
- cve.org/CVERecord?id=CVE-2008-4101
More vulnerabilities in Vim products
CVE-2025-66476CVE-2025-55158CVE-2025-55157CVE-2025-53906CVE-2025-53905CVE-2025-29768CVE-2025-27423CVE-2025-26603All 205
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.