{"id":"CVE-2007-0469","aliases":["EUVD-2022-3295","GHSA-95vx-q4c2-64gr"],"status":"published","title":"RubyGems file overwrite vulnerability","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.","severity":{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04858,"percentile":0.92093,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2007-01-24T01:00:00Z","modified":"2026-06-16T22:35:38Z","fixes":[{"ecosystem":"RubyGems","package":"rubygems-update","fixed_in":["0.9.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"rubygems-update","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"rubygems-update","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}],"versions":["0.8.10","0.8.11","0.8.3","0.8.4","0.8.5","0.8.6","0.8.8","0.9.0"]}],"products":[{"vendor":"rubyforge","product":"rubygems"}],"references":[{"url":"http://rubyforge.org/frs/shownotes.php?release_id=9074","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/31688","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.novell.com/linux/security/advisories/2007_4_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://www.securityfocus.com/archive/1/458128/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/0295","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://marc.info/?l=full-disclosure\u0026m=116939816621060\u0026w=2","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-0469","tags":["advisory"]},{"url":"https://web.archive.org/web/20070210090150/http://rubyforge.org/frs/shownotes.php?group_id=126\u0026release_id=9074","tags":["web"]},{"url":"https://web.archive.org/web/20201207172116/http://www.securityfocus.com/archive/1/458128/100/0/threaded","tags":["web"]},{"url":"https://github.com/advisories/GHSA-95vx-q4c2-64gr"},{"url":"https://github.com/rubygems/rubygems","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2007-0469","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.","status":"published","published":"2007-01-24T01:00:00Z","modified":"2024-08-07T12:19:30.269Z","updated_at":"2026-11-02T13:34:15.046008Z"}],"euvd":[{"id":"EUVD-2022-3295","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.","status":"published","published":"2007-01-24T01:00:00Z","modified":"2024-08-07T12:19:30Z","updated_at":"2026-11-03T01:38:30.186176Z"}],"ghsa":[{"id":"GHSA-95vx-q4c2-64gr","title":"RubyGems file overwrite vulnerability","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.","status":"published","published":"2022-05-01T17:44:34Z","modified":"2025-04-09T14:35:22Z","updated_at":"2026-11-02T14:38:38.344711Z"}],"nvd":[{"id":"CVE-2007-0469","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.","status":"published","published":"2007-01-24T01:28:00Z","modified":"2026-06-16T22:35:38.173Z","cvss":[{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:01:11.752648Z"}],"osv":[{"id":"GHSA-95vx-q4c2-64gr","title":"RubyGems file overwrite vulnerability","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.","status":"published","published":"2022-05-01T17:44:34Z","modified":"2025-04-09T15:28:46.696578Z","updated_at":"2026-11-02T15:46:43.123867Z"}]}}
