RubyGems extract_files() file overwrite
|rubygems-extractfiles-file-overwrite (31688)||Medium Risk|
RubyGems could allow a remote attacker to overwrite arbitrary files on the system, caused by the improper validation of paths by the extract_files() function. A remote attacker could exploit this vulnerability to overwrite files, resulting in a denial of service, or possibly gain elevated privileges on the system.
Upgrade to the latest version of RubyGems (0.9.1 or later), available from the RubyForge Web site. See References.
- Full-Disclosure Mailing List, Sun Jan 21 2007 - 03:09:39 CST: RubyGems 0.9.0 and earlier installation exploit.
- RubyForge Web site: RubyGems.
- CVE-2007-0469: The extract_files function in installer.rb in RubyGems before 0.9.1 does not check whether files exist before overwriting them, which allows user-assisted remote attackers to overwrite arbitrary files, cause a denial of service, or execute arbitrary code via crafted GEM packages.
- OSVDB ID: 33561: RubyGems installer.rb extract_files Function Crafted GEM Package Arbitrary File Overwrite
- SUSE-SR:2007:004: SUSE Security Summary Report
- RubyForge RubyGems 0.9.0
Jan 21, 2007
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 ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.