Home / mailingsPDF  

[gentoo-announce] [ GLSA 201701-29 ] Vim, gVim: Remote execution of arbitrary code

Posted on 11 January 2017
Gentoo-announce

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ijc0R89T3XWc8wflWc1HLV7Qk5x6H2a6g
Content-Type: multipart/mixed; boundary="KJJR5iKFItlsLo1QTpMotP6om7n3D7lmp"
From: Aaron Bauman <bman@gentoo.org>
To: gentoo-announce@lists.gentoo.org
Message-ID: <7c5345d3-1fef-f8f1-96dc-547fafb1e605@gentoo.org>
Subject: [ GLSA 201701-29 ] Vim, gVim: Remote execution of arbitrary code

--KJJR5iKFItlsLo1QTpMotP6om7n3D7lmp
Content-Type: multipart/alternative;
boundary="------------7FB8FCCD2E9116C2DDD3B391"

This is a multi-part message in MIME format.
--------------7FB8FCCD2E9116C2DDD3B391
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 201701-29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: Vim, gVim: Remote execution of arbitrary code
Date: January 11, 2017
Bugs: #600650
ID: 201701-29

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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.

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-editors/vim < 8.0.0106 >= 8.0.0106
2 app-editors/gvim < 8.0.0106 >= 8.0.0106
-------------------------------------------------------------------
2 affected packages

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

Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======
Copyright 2017 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5


--------------7FB8FCCD2E9116C2DDD3B391
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=utf=-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
<meta http-equiv="content-type" content="text/html; charset=u=tf-8">
</p>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-l=igatures: normal; font-variant-caps: normal; font-weight: normal; letter-=spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-tr=ansform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0=px; word-wrap: break-word; white-space: pre-wrap;">- - - - - - - - - - - =- - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 201701-29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<a class="moz-txt-link-freet=ext" href="https://security.gentoo.org/">https://security.gentoo.org/</=a>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: Vim, gVim: Remote execution of arbitrary code
Date: January 11, 2017
Bugs: #600650
ID: 201701-29

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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.

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-editors/vim < 8.0.0106 >= 8.0.=0106
2 app-editors/gvim < 8.0.0106 >= 8.0.=0106
-------------------------------------------------------------------
2 affected packages

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
<a class="moz-txt-link-freetext" href="http://nvd.nist.gov/nvd.=cfm?cvename=CVE-2016-1248">http://nvd.nist.gov/nvd.cfm?cvename=CVE-20=16-1248</a>

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

<a class="moz-txt-link-freetext" href="https://security.gentoo.org/g=lsa/201701-29">https://security.gentoo.org/glsa/201701-29</a>

Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
<a class="moz-txt-link-abbreviated" href="mailto:security@gentoo.org"=>security@gentoo.org</a> or alternatively, you may file a bug at
<a class="moz-txt-link-freetext" href="https://bugs.gentoo.org">https=://bugs.gentoo.org</a>.

License
=======
Copyright 2017 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

<a class="moz-txt-link-freetext" href="http://creativecommons.org/lic=enses/by-sa/2.5">http://creativecommons.org/licenses/by-sa/2.5</a></pre>
</body>
</html>

--------------7FB8FCCD2E9116C2DDD3B391--

--KJJR5iKFItlsLo1QTpMotP6om7n3D7lmp--

--ijc0R89T3XWc8wflWc1HLV7Qk5x6H2a6g
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

 

TOP