CVE-2008-4101 Command injection in n/a

Critical 9.3 Published Updated

User-assisted attackers can execute arbitrary shell or Ex commands in Vim via specific keystroke sequences on crafted lines.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2008-4101?

CVE-2008-4101 is a critical command injection vulnerability in Vim Vim, published on 18 Sep 2008. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2008-4101?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2008-4101?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2008-4101 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-4101 exists.

Public exploit code: 1 Exploit-DB entry.

All Vim Vim vulnerabilities

Sources

Also known as DEBIAN-CVE-2008-4101, GHSA-2gqj-jjm7-f6m7.

Is CVE-2008-4101 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free