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

high Nessus Plugin ID 15971

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

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'

See Also

https://security.gentoo.org/glsa/200412-10

Plugin Details

Severity: High

ID: 15971

File Name: gentoo_GLSA-200412-10.nasl

Version: 1.18

Type: local

Published: 12/15/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:gvim, p-cpe:/a:gentoo:linux:vim, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 12/15/2004

Vulnerability Publication Date: 12/15/2004

Reference Information

CVE: CVE-2004-1138

GLSA: 200412-10