CVE-2008-2712 Command injection in n/a

Critical 9.3 Published Updated

Attackers can execute arbitrary commands via malicious Vim scripts if users open them, requiring user interaction to trigger the vulnerability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2008-2712?

CVE-2008-2712 is a critical command injection vulnerability in Canonical Ubuntu Linux, published on 16 Jun 2008. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-20

Which versions are affected by CVE-2008-2712?

It affects 2 products.

Products include Canonical Ubuntu Linux, Vim Vim.

How do I fix CVE-2008-2712?

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-2712 being exploited?

There is no known exploitation of CVE-2008-2712 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2008-2712, DTSA-143-1, GHSA-j8hm-6qv5-gj2w.

Is CVE-2008-2712 in your software?

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

Check your SBOMs for free