GLSA-201701-29 : Vim, gVim: Remote execution of arbitrary code

This script is Copyright (C) 2017 Tenable Network Security, Inc.


Synopsis :

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

Description :

The remote host is affected by the vulnerability described in GLSA-201701-29
(Vim, gVim: Remote execution of arbitrary code)

Vim and gVim do not properly validate values for the ‘filetype’,
‘syntax’, and ‘keymap’ options.

Impact :

A remote attacker could entice a user to open a specially crafted file
using Vim/gVim with certain modeline options enabled possibly resulting
in execution of arbitrary code with the privileges of the process.

Workaround :

Disabling modeline support in .vimrc by adding “set nomodeline” will
prevent exploitation of this flaw. By default, modeline is enabled for
ordinary users but disabled for root.

See also :

https://security.gentoo.org/glsa/201701-29

Solution :

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

Risk factor :

Medium / CVSS Base Score : 6.8
(CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 96423 ()

Bugtraq ID:

CVE ID: CVE-2016-1248

Ready to Amp Up Your Nessus Experience?

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

Buy Nessus Professional Now