Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-2712 EUVD-2008-2706GHSA-j8hm-6qv5-gj2w

Vim 7.1.314, 6.4, and other versions allows user-assisted remote attackers to execute arbitrary commands via Vim scripts that do not proper…

Published Jun 16, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vim 1:7.1.314-3 —
Debian 13 vim 1:7.1.314-3 —
Debian 12 vim 1:7.1.314-3 —
Debian 5.0 vim 1:7.1.293-3+lenny1 DTSA-143-1
Debian 4.0 vim 1:7.0-122+1etch5 DSA-1733-1
ReleasePackageFixed inAdvisory
RHEL 5 vim +4 2:7.0.109-4.el5_2.4z RHSA-2008:0580
RHEL 4 vim +4 1:6.3.046-1.el4_7.5z RHSA-2008:0617
RHEL 3 vim +4 1:6.3.046-0.30E.11 RHSA-2008:0617
RHEL 2 vim +4 1:6.0-7.25 RHSA-2008:0618

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References