ADVISORIES

Alpine Security Database

ALPINE-CVE-2019-8324

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.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.6ruby
All versions before 2.4.6-r0 (fixed in 2.4.6-r0)
Alpine:v3.7ruby
All versions before 2.4.6-r0 (fixed in 2.4.6-r0)
Alpine:v3.8ruby
All versions before 2.5.5-r0 (fixed in 2.5.5-r0)
Alpine:v3.9ruby
All versions before 2.5.5-r0 (fixed in 2.5.5-r0)

References