MEDIUM
GHSA-95vx-q4c2-64gr
RubyGems file overwrite vulnerability
Quick fix
GHSA-95vx-q4c2-64gr — rubygems-update: upgrade to the fixed version with the command below.
bundle update rubygems-updateDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2007-0469[ADVISORY]
- https://exchange.xforce.ibmcloud.com/vulnerabilities/31688[WEB]
- https://github.com/rubygems/rubygems[PACKAGE]
- https://web.archive.org/web/20070210090150/http://rubyforge.org/frs/shownotes.php?group_id=126&release_id=9074[WEB]
- https://web.archive.org/web/20201207172116/http://www.securityfocus.com/archive/1/458128/100/0/threaded[WEB]
- http://marc.info/?l=full-disclosure&m=116939816621060&w=2[WEB]
- http://www.novell.com/linux/security/advisories/2007_4_sr.html[WEB]