Executive Summary

Summary
Title Vim, gVim: Remote execution of arbitrary code
Informations
Name GLSA-201701-29 First vendor Publication 2017-01-11
Vendor Gentoo Last vendor Modification 2017-01-11
Severity (Vendor) N/A Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:P/I:P/A:P)
Cvss Base Score 6.8 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A vulnerability has been found in Vim and gVim concerning how certain modeline options are treated.

Background

Vim is an efficient, highly configurable improved version of the classic 'vi' text editor. gVim is the GUI version of Vim.

Description

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.

Resolution

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"

References

[ 1 ] CVE-2016-1248
http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-1248

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

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

Original Source

Url : http://security.gentoo.org/glsa/glsa-201701-29.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-20 Improper Input Validation

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 26
Os 1

Snort® IPS/IDS

Date Description
2017-08-08 Vim modelines remote command execution attempt
RuleID : 43482 - Revision : 3 - Type : FILE-OTHER
2017-08-08 Vim modelines remote command execution attempt
RuleID : 43481 - Revision : 3 - Type : FILE-OTHER

Nessus® Vulnerability Scanner

Date Description
2018-08-17 Name : The remote PhotonOS host is missing multiple security updates.
File : PhotonOS_PHSA-2016-0012.nasl - Type : ACT_GATHER_INFO
2017-11-01 Name : The remote device is missing a vendor-supplied security patch.
File : f5_bigip_SOL22183127.nasl - Type : ACT_GATHER_INFO
2017-05-01 Name : The remote EulerOS host is missing multiple security updates.
File : EulerOS_SA-2017-1034.nasl - Type : ACT_GATHER_INFO
2017-05-01 Name : The remote EulerOS host is missing multiple security updates.
File : EulerOS_SA-2017-1033.nasl - Type : ACT_GATHER_INFO
2017-01-24 Name : The remote host is missing a macOS update that fixes multiple security vulner...
File : macos_10_12_3.nasl - Type : ACT_GATHER_INFO
2017-01-12 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-201701-29.nasl - Type : ACT_GATHER_INFO
2016-12-27 Name : The remote FreeBSD host is missing one or more security-related updates.
File : freebsd_pkg_c11629d3c8ad11e6ae1b002590263bf5.nasl - Type : ACT_GATHER_INFO
2016-12-22 Name : The remote OracleVM host is missing a security update.
File : oraclevm_OVMSA-2016-0182.nasl - Type : ACT_GATHER_INFO
2016-12-22 Name : The remote CentOS host is missing one or more security updates.
File : centos_RHSA-2016-2972.nasl - Type : ACT_GATHER_INFO
2016-12-21 Name : The remote Scientific Linux host is missing one or more security updates.
File : sl_20161221_vim_on_SL6_x.nasl - Type : ACT_GATHER_INFO
2016-12-21 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2016-2972.nasl - Type : ACT_GATHER_INFO
2016-12-21 Name : The remote Oracle Linux host is missing one or more security updates.
File : oraclelinux_ELSA-2016-2972.nasl - Type : ACT_GATHER_INFO
2016-12-20 Name : The remote Amazon Linux AMI host is missing a security update.
File : ala_ALAS-2016-779.nasl - Type : ACT_GATHER_INFO
2016-12-06 Name : The remote openSUSE host is missing a security update.
File : openSUSE-2016-1391.nasl - Type : ACT_GATHER_INFO
2016-12-06 Name : The remote openSUSE host is missing a security update.
File : openSUSE-2016-1390.nasl - Type : ACT_GATHER_INFO
2016-11-29 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-3139-1.nasl - Type : ACT_GATHER_INFO
2016-11-29 Name : The remote SUSE host is missing one or more security updates.
File : suse_SU-2016-2942-1.nasl - Type : ACT_GATHER_INFO
2016-11-29 Name : The remote SUSE host is missing one or more security updates.
File : suse_SU-2016-2938-1.nasl - Type : ACT_GATHER_INFO
2016-11-23 Name : The remote Debian host is missing a security update.
File : debian_DLA-718.nasl - Type : ACT_GATHER_INFO
2016-11-23 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-3722.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
Date Informations
2017-01-13 13:24:47
  • Multiple Updates
2017-01-11 17:22:57
  • First insertion