Live threats

All CVEs / Rubygems

CVE-2019-8324Rubygems

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
3.1%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Jun 17, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rubygems.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rubygems-update ≥ 2.6.0 < 2.7.9 2.7.9 gem "rubygems-update", ">= 2.7.9"
RubyGems rubygems-update ≥ 3.0.0 < 3.0.2 3.0.2 gem "rubygems-update", ">= 3.0.2"

Per OSV / GitHub Advisories (GHSA-76wm-422q-92mq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubygemsrubygems≥ 2.6.0 ≤ 3.0.2
debiandebian_linux9.0
opensuseleap15.0
opensuseleap15.1
redhatenterprise_linux8.0

Official sources

References

Links published by the sources. Open them with care.