Vim Modelines Arbitrary Command Execution Variant Vulnerability

BID:11941

Info

Vim Modelines Arbitrary Command Execution Variant Vulnerability

Bugtraq ID: 11941
Class: Input Validation Error
CVE: CVE-2004-1138
Remote: Yes
Local: No
Published: Dec 15 2004 12:00AM
Updated: Jul 12 2009 09:26AM
Credit: Discovery is credited to Ciaran McCreesh.
Vulnerable: VIM Development Group VIM 6.3 .044
+ OpenPKG OpenPKG Current
VIM Development Group VIM 6.3 .030
+ OpenPKG OpenPKG 2.2
VIM Development Group VIM 6.3 .025
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
VIM Development Group VIM 6.3 .011
+ OpenPKG OpenPKG 2.1
VIM Development Group VIM 6.2
+ MandrakeSoft Corporate Server 3.0 x86_64
+ MandrakeSoft Corporate Server 3.0
+ Mandriva Linux Mandrake 10.0 AMD64
+ Mandriva Linux Mandrake 10.0
+ Redhat Fedora Core1
+ SCO OpenLinux Server 3.1.1
+ SCO OpenLinux Workstation 3.1.1
VIM Development Group VIM 6.1
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ MandrakeSoft Multi Network Firewall 2.0
+ MandrakeSoft Single Network Firewall 7.2
+ Mandriva Linux Mandrake 9.0
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
+ Mandriva Linux Mandrake 7.2
+ Redhat Linux 9.0 i386
+ Redhat Linux 8.0
+ Redhat Linux for iSeries 7.1
+ Redhat Linux for pSeries 7.1
+ Sun Cobalt Qube 3
+ Sun Cobalt RaQ 4
+ Sun Cobalt RaQ 550
+ Sun Cobalt RaQ XTR
+ Sun Linux 5.0.6
VIM Development Group VIM 6.0
+ Redhat Linux 7.3 i386
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 i386
VIM Development Group VIM 5.8
VIM Development Group VIM 5.7
+ Caldera OpenLinux 2.3
+ Redhat Linux 7.0 sparc
+ Redhat Linux 7.0 i386
+ Redhat Linux 7.0 alpha
+ Redhat Linux 7.0
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 alpha
+ Redhat Linux 5.2 sparc
+ Redhat Linux 5.2 i386
+ Redhat Linux 5.2 alpha
+ Redhat Linux 5.2
+ Redhat Linux 6.2
+ SCO eDesktop 2.4
+ SCO eServer 2.3.1
+ SuSE Linux 7.1
+ SuSE Linux 7.0
+ SuSE Linux 6.4
+ SuSE Linux 6.3
+ SuSE Linux 6.2
+ SuSE Linux 6.1
VIM Development Group VIM 5.6
VIM Development Group VIM 5.5
VIM Development Group VIM 5.4
VIM Development Group VIM 5.3
VIM Development Group VIM 5.2
VIM Development Group VIM 5.1
VIM Development Group VIM 5.0
SGI ProPack 3.0
Redhat Enterprise Linux WS 3
Redhat Enterprise Linux WS 2.1 IA64
Redhat Enterprise Linux WS 2.1
Redhat Enterprise Linux ES 3
Redhat Enterprise Linux ES 2.1 IA64
Redhat Enterprise Linux ES 2.1
Redhat Enterprise Linux AS 3
Redhat Enterprise Linux AS 2.1 IA64
Redhat Enterprise Linux AS 2.1
Redhat Desktop 3.0
Redhat Advanced Workstation for the Itanium Processor 2.1 IA64
Redhat Advanced Workstation for the Itanium Processor 2.1
IPCop IPCop 1.4.5
IPCop IPCop 1.4.4
IPCop IPCop 1.4.2
IPCop IPCop 1.4.1
Avaya S8710 R2.0.1
Avaya S8710 R2.0.0
Avaya S8700 R2.0.1
Avaya S8700 R2.0.0
Avaya S8500 R2.0.1
Avaya S8500 R2.0.0
Avaya S8300 R2.0.1
Avaya S8300 R2.0.0
Avaya Network Routing
Avaya Modular Messaging (MSS) 2.0
Avaya Modular Messaging (MSS) 1.1
Avaya MN100
Avaya Intuity LX
Avaya CVLAN
Avaya Converged Communications Server 2.0
Not Vulnerable: VIM Development Group VIM 6.3 .045

Discussion

Vim Modelines Arbitrary Command Execution Variant Vulnerability

Vim modelines is prone to a vulnerability that may permit execution of arbitrary commands. Reportedly, certain modelines options expose this issue. Exploitation could occur when a malicious file is opened in the editor and would occur in the context of the user opening the file.

This issue is similar to BID 6384.

Exploit / POC

Vim Modelines Arbitrary Command Execution Variant Vulnerability

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

Solution / Fix

Vim Modelines Arbitrary Command Execution Variant Vulnerability

Solution:
SGI has released advisory 20050102-01-U to address various issues in SGI Advanced Linux Environment 3. This advisory includes updated SGI ProPack 3 Service Pack 3 packages (patch10132.tar.gz). Please see the referenced advisory for more information.

Gentoo has released updates to address this issue. These updates may be applied by issuing the following commands for Vim and gVim respectively:

(vim)
emerge --sync
emerge --ask --oneshot --verbose ">=app-editors/vim-6.3-r2"

(gVim)
emerge --sync
emerge --ask --oneshot --verbose ">=app-editors/gvim-6.3-r2"

The vendor has addressed this issue in Vim 6.3.045 and later releases. An updated release may be obtained by download the latest 6.3 release from the vim.org downloads page or through CVS.

OpenPKG has released an advisory dealing with this issue. Please see the referenced advisory for more information.

Ubuntu has released an advisory dealing with this issue. Please see the referenced advisory for more information.

Red Hat has released advisory RHSA-2005:010-05 to address this issue in Red Hat Enterprise Linux. Please see the advisory in Web references for more information.

Mandrake has released advisory MDKSA-2005:003 to address this vulnerability. Please see the attached advisory for details on obtaining and applying fixes.

Avaya has released advisory ASA-2005-020 to document the affected versions of Avaya products. Please see the referenced advisory for further information.

Fedora Legacy has released advisory FLSA:2343 to adress this issue for various Red Hat Linux releases and Fedora Core 1. Please see the referenced advisory for further information.

IPCop has released version 1.4.6 to address this issue.


IPCop IPCop 1.4.1

IPCop IPCop 1.4.2

IPCop IPCop 1.4.4

IPCop IPCop 1.4.5

SGI ProPack 3.0

VIM Development Group VIM 5.0

VIM Development Group VIM 5.1

VIM Development Group VIM 5.2

VIM Development Group VIM 5.3

VIM Development Group VIM 5.4

VIM Development Group VIM 5.5

VIM Development Group VIM 5.6

VIM Development Group VIM 5.7

VIM Development Group VIM 5.8

VIM Development Group VIM 6.0

VIM Development Group VIM 6.1

VIM Development Group VIM 6.2

VIM Development Group VIM 6.3 .030

VIM Development Group VIM 6.3 .025

VIM Development Group VIM 6.3 .011

References

Vim Modelines Arbitrary Command Execution Variant Vulnerability

References:

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report