Updated vim packages that fix a security issue are now available for Red Hat Enterprise Linux 5.An arbitrary command execution flaw was found in the way VIM processes modelines. If a user with modelines enabled opened a text file containing a carefully crafted modeline, arbitrary commands could be executed as the user running VIM. This update has been rated as having moderate security impact by the Red Hat Security Response Team.. - --------------------------------------------------------------------- Red Hat Security Advisory Synopsis: Moderate: vim security update Advisory ID: RHSA-2007:0346-01 Advisory URL: https://access.redhat.com/errata/RHSA-2007:0346.html Issue date: 2007-05-09 Updated on: 2007-05-09 Product: Red Hat Enterprise Linux CVE Names: CVE-2007-2438 - ---------------------------------------------------------------------1. Summary: Updated vim packages that fix a security issue are now available for Red Hat Enterprise Linux 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. 2. Relevant releases/architectures: Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64 Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64 3. Problem description: VIM (VIsual editor iMproved) is a version of the vi editor. An arbitrary command execution flaw was found in the way VIM processes modelines. If a user with modelines enabled opened a text file containing a carefully crafted modeline, arbitrary commands could be executed as the user running VIM. (CVE-2007-2438) Users of VIM are advised to upgrade to these updated packages, which resolve this issue. Please note: this issue did not affect VIM as distributed with Red Hat Enterprise Linux 2.1, 3, or 4. 4. Solution: Before applying this update, make sure that all previously-released errata relevant to your system have been applied. This update is available viaRed Hat Network. Details on how to use the Red Hat Network to apply this update are available at 5. Bug IDs fixed (http://bugzilla.redhat.com/): 238259 - CVE-2007-2438 vim-7 modeline security issue 6. RPMs required: Red Hat Enterprise Linux Desktop (v. 5 client): SRPMS: e057a4d34a4a8560939b9bb588517420 vim-7.0.109-3.el5.3.src.rpm i386: 4a3ea5327008913ecade2dabe0337de7 vim-X11-7.0.109-3.el5.3.i386.rpm d9589f3dcbe58f3f355a15405915f939 vim-common-7.0.109-3.el5.3.i386.rpm 7a2330aaea8210cb5d428a5b3055e580 vim-debuginfo-7.0.109-3.el5.3.i386.rpm e1a19e0a474ff74a7546ac83a7905f5c vim-enhanced-7.0.109-3.el5.3.i386.rpm 6539ac943dbf36d8cdd973363bb8b5ba vim-minimal-7.0.109-3.el5.3.i386.rpm x86_64: ee97948f2545f7e0a37b33fb0bde8f11 vim-X11-7.0.109-3.el5.3.x86_64.rpm 986ee1a67308fcb05ea90afa85eb14b4 vim-common-7.0.109-3.el5.3.x86_64.rpm ad5b39233271781006f64b39198eb254 vim-debuginfo-7.0.109-3.el5.3.x86_64.rpm 49aa8c77bb180de51539cb7d0f5d635d vim-enhanced-7.0.109-3.el5.3.x86_64.rpm da6d10a02e1cf4121095ab6e9544f4db vim-minimal-7.0.109-3.el5.3.x86_64.rpm Red Hat Enterprise Linux (v. 5 server): SRPMS: e057a4d34a4a8560939b9bb588517420 vim-7.0.109-3.el5.3.src.rpm i386: 4a3ea5327008913ecade2dabe0337de7 vim-X11-7.0.109-3.el5.3.i386.rpm d9589f3dcbe58f3f355a15405915f939 vim-common-7.0.109-3.el5.3.i386.rpm 7a2330aaea8210cb5d428a5b3055e580 vim-debuginfo-7.0.109-3.el5.3.i386.rpm e1a19e0a474ff74a7546ac83a7905f5c vim-enhanced-7.0.109-3.el5.3.i386.rpm 6539ac943dbf36d8cdd973363bb8b5ba vim-minimal-7.0.109-3.el5.3.i386.rpm ia64: 6a019342604776e1a9266ea628292c6b vim-X11-7.0.109-3.el5.3.ia64.rpm 77b51bd7442889406418c7bfb2a97942 vim-common-7.0.109-3.el5.3.ia64.rpm 3dfb29087a10bae25becdf1cf69e423e vim-debuginfo-7.0.109-3.el5.3.ia64.rpm 0852cd42e83dc460d49d64c454315e63 vim-enhanced-7.0.109-3.el5.3.ia64.rpm e94013ed5136148fc4022e217350e198 vim-minimal-7.0.109-3.el5.3.ia64.rpm ppc: d1e6aa03f74f9a8bbd1f30c80aaba5fd vim-X11-7.0.109-3.el5.3.ppc.rpm 2621bb3dfbef1b8449f61082ecdd6cc8 vim-common-7.0.109-3.el5.3.ppc.rpm 06abf51c81d108c30dd6ea51c3bde3f6 vim-debuginfo-7.0.109-3.el5.3.ppc.rpm e58650f6b7015ee74c018b5e3933d5a2 vim-enhanced-7.0.109-3.el5.3.ppc.rpm 76491ca22289c0780d74c0cb98b0b2c6 vim-minimal-7.0.109-3.el5.3.ppc.rpm s390x: e5a6e15a237641bd9a49b56b128409d6 vim-X11-7.0.109-3.el5.3.s390x.rpm 1fc67cbb34143778972e0756c6b45cc7 vim-common-7.0.109-3.el5.3.s390x.rpm 099894105a80244703163a60cc7c53f8 vim-debuginfo-7.0.109-3.el5.3.s390x.rpm 0dd61a9d9709c3e252439a4b5bb386f7 vim-enhanced-7.0.109-3.el5.3.s390x.rpm 39d600c984782b2b7399c2a73c64c33a vim-minimal-7.0.109-3.el5.3.s390x.rpm x86_64: ee97948f2545f7e0a37b33fb0bde8f11 vim-X11-7.0.109-3.el5.3.x86_64.rpm 986ee1a67308fcb05ea90afa85eb14b4 vim-common-7.0.109-3.el5.3.x86_64.rpm ad5b39233271781006f64b39198eb254 vim-debuginfo-7.0.109-3.el5.3.x86_64.rpm 49aa8c77bb180de51539cb7d0f5d635d vim-enhanced-7.0.109-3.el5.3.x86_64.rpm da6d10a02e1cf4121095ab6e9544f4db vim-minimal-7.0.109-3.el5.3.x86_64.rpm These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from https://access.redhat.com/security/team/key#package 7. References: https://www.cve.org/CVERecord?id=CVE-2007-2438 https://access.redhat.com/security/updates/classification#moderate 8. Contact: The Red Hat security contact is . More contact details at https://access.redhat.com/security/team/contact Copyright 2007 Red Hat, Inc. . Important security patch for Red Hat Enterprise Linux fixing vulnerabilities in the vim process management of modelines that could lead to arbitrary command execution.. Red Hat Enterprise Linux, vim command execution fix, security patch. . LinuxSecurity.com Team
Several vulnerabilities related to the use of options in modelines have been found and fixed in Vim. They could potentially result in a local user escalating privileges. [More...]. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gentoo Linux Security Advisory GLSA 200412-10 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - https://security.gentoo.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Severity: Normal Title: Vim, gVim: Vulnerable options in modelines Date: December 15, 2004 Bugs: #73715 ID: 200412-10 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Synopsis ======= Several vulnerabilities related to the use of options in modelines have been found and fixed in Vim. They could potentially result in a local user escalating privileges. 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 < 6.3-r2 > = 6.3-r2 2 app-editors/gvim < 6.3-r2 > = 6.3-r2 ------------------------------------------------------------------- 2 affected packages on all of their supported architectures. ------------------------------------------------------------------- Description ========== 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 ina 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. Resolution ========= 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" References ========= [ 1 ] CAN-2004-1138 https://www.cve.org/CVERecord?id=CAN-2004-1138 Availability =========== This GLSA and any updates to it are available for viewing at the Gentoo Security Website: https://security.gentoo.org/glsa/200412-10 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
Get the latest Linux and open source security news straight to your inbox.