Technical article 126417

What is SCOSA-2006.13, concerning "Vim ModeLines Further Variant Arbitrary Command Execution Vulnerability"?

OpenServer 6.0.0

Written

Problem

Vim is susceptible to an arbitrary command execution vulnerability with ModeLines. This issue is due to insufficient sanitization of user-supplied input.

By modifying a text file to include ModeLines containing the 'glob()', or 'expand()' functions with shell metacharacters, attackers may cause arbitrary commands to be executed.

This vulnerability allows an attacker to execute arbitrary commands with the privileges of the vim user. This gives an attacker the ability to gain remote access to computers running the vulnerable software.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-2368 to this issue.

Solution

______________________________________________________________________________
SCO Security Advisory
Subject:                OpenServer 6.0.0 : Vim ModeLines Further Variant
                        Arbitrary Command Execution Vulnerability
Advisory number:        SCOSA-2006.13
Issue date:             2006 March 16
Cross reference:        fz533037
                        CVE-2005-2368
______________________________________________________________________________
1. Problem Description

Vim is susceptible to an arbitrary command execution vulnerability with ModeLines. This issue is due to insufficient sanitization of user-supplied input.

By modifying a text file to include ModeLines containing the 'glob()', or 'expand()' functions with shell metacharacters, attackers may cause arbitrary commands to be executed.

This vulnerability allows an attacker to execute arbitrary commands with the privileges of the vim user. This gives an attacker the ability to gain remote access to computers running the vulnerable software.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-2368 to this issue.

2. Vulnerable Supported Versions
System                          Binaries
----------------------------------------------------------------------
OpenServer 6.0.0                vim package
3. Solution

The proper solution is to install the latest packages.

4. OpenServer 6.0.0
4.1 Location of Fixed Binaries
https://ftp.scoexpert.com/openserver6/600/mp/osr600mp2/osr600mp2.iso
4.2 Verification
MD5 (osr600mp2.iso) = 7e560dcde374eb60df2b4a599ac20d8a
md5 is available for download from
        https://ftp.scoexpert.com/security/tools
4.3 Installing Fixed Binaries

See the SCO OpenServer Release 6.0.0 Maintenance Pack 2 Release and Installation Notes:

https://ftp.scoexpert.com/openserver6/600/mp/osr600mp2/osr600mp2.html
5. References
Specific references for this advisory:
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2368
        [SecurityFocus — site closed]
SCO security resources:
        http://www.sco.com/support/security/index.html
SCO security advisories via email
        http://www.sco.com/support/forums/security.html

This security fix closes SCO incidents fz533037.

6. Disclaimer

SCO is not responsible for the misuse of any of the information we provide on this website and/or through our security advisories. Our advisories are a service to our customers intended to promote secure installation and use of SCO products.

7. Acknowledgments

Discovery of this issue is credited to Georgi Guninski. http://www.guninski.com/

______________________________________________________________________________

From the Xinuos technical article database, record 126417. Reproduced with permission. The original is at www.sco.com/ta/126417, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.