CVE-2008-2712
Vim 7.1.314, 6.4, and other versions allows user-assisted remote attackers to execute arbitrary commands via Vim scripts that do not…
Check your servers for CVE-2008-2712
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-2712 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 7.1.314, 6.4, and other versions allows user-assisted remote attackers to execute arbitrary commands via Vim scripts that do not properly sanitize inputs before invoking the execute or system functions, as demonstrated using (1) filetype.vim, (3) xpm.vim, (4) gzip_vim, and (5) netrw. NOTE: the originally reported version was 7.1.314, but the researcher actually found this set of issues in 7.1.298. NOTE: the zipplugin issue (originally vector 2 in this identifier) has been subsumed by CVE-2008-3075.
Exploitation
EPSS 15.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.3% 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-2712 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2008-2712RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2008-2712Alpine
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-2712
trivy image --scanners vuln IMAGE | grep CVE-2008-2712
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
- SUSE-SR:2009:007 lists.opensuse.org · vendor advisory
- RHSA-2008:0618 redhat.com · vendor 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
- 34418 secunia.com · third party advisory
- http://support.avaya.com/elmodocs2/security/ASA-2008-457.htm support.avaya.com
- 30731 secunia.com · third party advisory
10 more
- 32222 secunia.com · third party advisory
- http://support.apple.com/kb/HT4077 support.apple.com
- https://issues.rpath.com/browse/RPL-2622 issues.rpath.com
- 3951 securityreason.com · third party advisory
- 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
- http://wiki.rpath.com/Advisories:rPSA-2008-0247 wiki.rpath.com
- RHSA-2008:0617 redhat.com · vendor advisory
Other references
- http://www.rdancer.org/vulnerablevim.html rdancer.org
- oval:org.mitre.oval:def:6238 oval.cisecurity.org · vdb entry, signature
- 31681 securityfocus.com · vdb entry
- vim-scripts-command-execution(43083) exchange.xforce.ibmcloud.com · vdb entry
- ADV-2009-0904 vupen.com · vdb entry
- ADV-2009-0033 vupen.com · vdb entry
- 20080811 rPSA-2008-0247-1 gvim vim vim-minimal securityfocus.com · mailing list
- 20080614 Re: Collection of Vulnerabilities in Fully Patched Vim 7.1 securityfocus.com · mailing list
- oval:org.mitre.oval:def:11109 oval.cisecurity.org · vdb entry, signature
- 20090401 VMSA-2009-0004 ESX Service Console updates for openssl, bind, and vim securityfocus.com · mailing list
- [oss-security] 20080616 CVE Id request: vim openwall.com · mailing list
- 20080701 Re: Collection of Vulnerabilities in Fully Patched Vim 7.1 marc.info · mailing list
6 more
- ADV-2008-1851 vupen.com · vdb entry
- ADV-2008-2780 vupen.com · vdb entry
- [oss-security] 20081015 Vim CVE issues cleanup (plugins tar.vim, zip.vim) - CVE-2008-3074 and CVE-2008-3075 openwall.com · mailing list
- 1020293 securitytracker.com · vdb entry
- 29715 securityfocus.com · vdb entry
- 20080613 Collection of Vulnerabilities in Fully Patched Vim 7.1 securityfocus.com · mailing list
Source: the record CVE-2008-2712 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