Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-4101 EUVD-2008-4085GHSA-2gqj-jjm7-f6m7

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…

Published Sep 18, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

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 2:7.2.010-1 —
Debian 13 vim 2:7.2.010-1 —
Debian 12 vim 2:7.2.010-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 4

References