CVE-2008-4101
Vim 3.0 through 7.x before 7.2.010 does not properly escape characters, which allows user-assisted attackers to (1) execute arbitrary…
Check your servers for CVE-2008-4101
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2008-4101 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 9.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.0% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2008-4101 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2008-4101RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2008-4101Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2008-4101
trivy image --scanners vuln IMAGE | grep CVE-2008-4101
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- http://www.vmware.com/security/advisories/VMSA-2009-0004.html vmware.com
- RHSA-2008:0618 redhat.com · vendor advisory
- 31592 secunia.com · third party advisory
- USN-712-1 ubuntu.com · vendor advisory
- 32858 secunia.com · third party advisory
- 33410 secunia.com · third party advisory
- APPLE-SA-2010-03-29-1 lists.apple.com · vendor advisory
- RHSA-2008:0580 redhat.com · vendor advisory
- http://support.avaya.com/elmodocs2/security/ASA-2009-001.htm support.avaya.com
- https://bugzilla.redhat.com/show_bug.cgi?id=461927 bugzilla.redhat.com
- http://support.avaya.com/elmodocs2/security/ASA-2008-457.htm support.avaya.com
- 32222 secunia.com · third party advisory
6 more
- http://support.apple.com/kb/HT4077 support.apple.com
- MDVSA-2008:236 mandriva.com · vendor advisory
- 32864 secunia.com · third party advisory
- APPLE-SA-2008-10-09 lists.apple.com · vendor advisory
- http://support.apple.com/kb/HT3216 support.apple.com
- RHSA-2008:0617 redhat.com · vendor advisory
Other references
- [vim-dev] 20080903 Patch 7.2.010 ftp.vim.org · mailing list
- [oss-security] 20080915 Re: [oss-list] CVE request (vim) openwall.com · mailing list
- 20080825 RE: Arbitrary Code Execution in Commands: K, Control-], g] securityfocus.com · mailing list
- [oss-security] 20080911 Re: [oss-list] CVE request (vim) openwall.com · mailing list
- oval:org.mitre.oval:def:10894 oval.cisecurity.org · vdb entry, signature
- 31681 securityfocus.com · vdb entry
- [oss-security] 20080915 Re: [oss-list] CVE request (vim) openwall.com · mailing list
- vim-normal-command-execution(44626) exchange.xforce.ibmcloud.com · vdb entry
- ADV-2009-0904 vupen.com · vdb entry
- ADV-2009-0033 vupen.com · vdb entry
- 20090401 VMSA-2009-0004 ESX Service Console updates for openssl, bind, and vim securityfocus.com · mailing list
- http://groups.google.com/group/vim_dev/attach/dd32ad3a84f36bb2/K-arbitrary-command-execution.patch?part=2 groups.google.com
9 more
- 30795 securityfocus.com · vdb entry
- oval:org.mitre.oval:def:5812 oval.cisecurity.org · vdb entry, signature
- http://groups.google.com/group/vim_dev/attach/9290f26f9bc11b33/K-arbitrary-command-execution.patch.v3?part=2 groups.google.com
- [oss-security] 20080911 [oss-list] CVE request (vim) openwall.com · mailing list
- 20080822 Vim: Arbitrary Code Execution in Commands: K, Control-], g] securityfocus.com · mailing list
- ADV-2008-2780 vupen.com · vdb entry
- [vim_dev] 20080824 Bug with v_K and potentially K command groups.google.com · mailing list
- http://www.rdancer.org/vulnerablevim-K.html rdancer.org
- http://groups.google.com/group/vim_dev/browse_thread/thread/1434d0812b5c817e/6ad2d5b50a96668e groups.google.com
Source: the record CVE-2008-4101 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse