VDB
Sign up
HIGH8.8

GHSA-76wm-422q-92mq

Code injection in RubyGems

Quick fix

GHSA-76wm-422q-92mq — rubygems-update: upgrade to the fixed version with the command below.

bundle update rubygems-update

Details

An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/rubygems-update
Introduced in: 2.6.0Fixed in: 2.7.9
Fixbundle update rubygems-update
RubyGems/rubygems-update
Introduced in: 3.0.0Fixed in: 3.0.2
Fixbundle update rubygems-update

References