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 AdvisorySubject: 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 DescriptionVim 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 VersionsSystem Binaries
----------------------------------------------------------------------
OpenServer 6.0.0 vim package3. SolutionThe proper solution is to install the latest packages.
4. OpenServer 6.0.04.1 Location of Fixed Binarieshttps://ftp.scoexpert.com/openserver6/600/mp/osr600mp2/osr600mp2.iso4.2 VerificationMD5 (osr600mp2.iso) = 7e560dcde374eb60df2b4a599ac20d8amd5 is available for download from
https://ftp.scoexpert.com/security/tools4.3 Installing Fixed BinariesSee the SCO OpenServer Release 6.0.0 Maintenance Pack 2 Release and Installation Notes:
https://ftp.scoexpert.com/openserver6/600/mp/osr600mp2/osr600mp2.html5. ReferencesSpecific 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.htmlSCO security advisories via email
http://www.sco.com/support/forums/security.htmlThis security fix closes SCO incidents fz533037.
6. DisclaimerSCO 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. AcknowledgmentsDiscovery of this issue is credited to Georgi Guninski. http://www.guninski.com/
______________________________________________________________________________