VDB
Sign up
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-update

Details

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

RubyGems/rubygems-update
Introduced in: 0Fixed in: 0.9.1
Fixbundle update rubygems-update

References