Description
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.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | rubygems-update | < 0.9.1 | 0.9.1 | GHSA-95vx-q4c2-64gr |
References
- http://rubyforge.org/frs/shownotes.php?release_id=9074
- rubygems-extractfiles-file-overwrite(31688) vdb-entry
- SUSE-SR:2007:004 vendor-advisory
- 20070121 RubyGems 0.9.0 and earlier installation exploit mailing-list
- ADV-2007-0295 vdb-entry
- 20070121 RubyGems 0.9.0 and earlier installation exploit mailing-list