GLSA-200412-10 : Vim, gVim: Vulnerable options in modelines

This script is Copyright (C) 2004-2015 Tenable Network Security, Inc.

Synopsis :

The remote Gentoo host is missing one or more security-related

Description :

The remote host is affected by the vulnerability described in GLSA-200412-10
(Vim, gVim: Vulnerable options in modelines)

Gentoo's Vim maintainer, Ciaran McCreesh, found several
vulnerabilities related to the use of options in Vim modelines. Options
like 'termcap', 'printdevice', 'titleold', 'filetype', 'syntax',
'backupext', 'keymap', 'patchmode' or 'langmenu' could be abused.

Impact :

A local attacker could write a malicious file in a world readable
location which, when opened in a modeline-enabled Vim, could trigger
arbitrary commands with the rights of the user opening the file,
resulting in privilege escalation. Please note that modelines are
disabled by default in the /etc/vimrc file provided in Gentoo.

Workaround :

There is no known workaround at this time.

See also :

Solution :

All Vim users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=app-editors/vim-6.3-r2'
All gVim users should also upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=app-editors/gvim-6.3-r2'

Risk factor :

High / CVSS Base Score : 7.2

Family: Gentoo Local Security Checks

Nessus Plugin ID: 15971 (gentoo_GLSA-200412-10.nasl)

Bugtraq ID:

CVE ID: CVE-2004-1138

Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now