Vim modeline gain privileges

vim-modeline-gain-privileges (18503) The risk level is classified as HighHigh Risk

Description:

VIM (Vi IMproved) could allow a local attacker to execute arbitrary commands on the system. If modelines are enabled, a local attacker could create a malicious text file that exploits one of the following options: termcap, printdevice, titleold, filetype, syntax, backupext, keymap, patchmode or langmenu, to execute arbitrary commands on the system with the privileges of the victim, once the victim opens the malicious file using VIM.


Consequences:

Gain Privileges

Remedy:

Upgrade to the latest version of VIM (6.3-r2 or later), available from the VIM Download Web page. See References.

For Gentoo Linux:
Upgrade to the latest version of gVim (6.3-r2 or later), as listed in GLSA 200412-10. See References.

For Ubuntu Linux:
Upgrade to the latest kvim, vim, vim-gnome, vim-gtk, vim-lesstif, vim-perl, vim-python or vim-tcl package (1:6.3-025+1ubuntu2.1 or later), as listed in USN-52-1 December 23, 2004 for more information. See References.

For Red Hat Linux:
Upgrade to the latest vim package, as listed below. Refer to RHSA-2004:537-17 for more information. See References.

Red Hat Enterprise Linux AS, ES, WS (v. 3) and Desktop 3: 6.3.046-0.30E.1 or later
Red Hat Enterprise Linux AS, ES, WS (v. 2.1) and Red Hat Linux Advanced Workstation 2.1: 6.0-7.19 or later

For Red Hat Linux (Vim):
Refer to RHSA-2005:036-10 or RHSA-2005:010-05 for patch, upgrade, or suggested workaround information. See References.

For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2004.052 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

Platforms Affected:

  • Canonical Ubuntu 4.10
  • Gentoo Linux
  • MandrakeSoft Mandrake Linux 10.0 AMD64
  • MandrakeSoft Mandrake Linux 10.0
  • MandrakeSoft Mandrake Linux 10.1 X86_64
  • MandrakeSoft Mandrake Linux 10.1
  • MandrakeSoft Mandrake Linux 9.2
  • MandrakeSoft Mandrake Linux 9.2 AMD64
  • MandrakeSoft Mandrake Linux Corporate Server 2.1
  • MandrakeSoft Mandrake Linux Corporate Server 2.1 X86_64
  • OpenPKG OpenPKG 2.1
  • OpenPKG OpenPKG 2.2
  • OpenPKG OpenPKG CURRENT
  • RedHat Enterprise Linux 2.1 AW
  • RedHat Enterprise Linux 2.1 WS
  • RedHat Enterprise Linux 2.1 ES
  • RedHat Enterprise Linux 2.1 AS
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 AS
  • RedHat Linux Advanced Workstation 2.1 Itanium
  • Vim VIM prior to 6.3-r2

Reported:

Dec 15, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page