RubyGems extract_files() file overwrite
| rubygems-extractfiles-file-overwrite (31688) |
Description:
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.
*CVSS:
| Base Score: | 7 |
| Access Vector: | Remote |
| Access Complexity: | Low |
| Authentication: | Not Required |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.2 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
File Manipulation
Remedy:
Upgrade to the latest version of RubyGems (0.9.1 or later), available from the RubyForge Web site. See References.
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.
- SUSE-SR:2007:004: SUSE Security Summary Report
- VUPEN/ADV-2007-0295: RubyGems extract_files() Installation Procedure Arbitrary File Overwrite Vulnerability
Platforms Affected:
- RubyForge RubyGems 0.9.0 and prior
Reported:
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 xforce@iss.net
* 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.
