Skip to content
Noroxi
CVE-2019-8324· NVD / CVE Program· CNA mitre

An issue was discovered in RubyGems 2.6 and later through 3.0.2.

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.

HighCVSS 8.8 · v3.1—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Jun 17, 2019
Updated
Jun 16, 2026
EPSS
3.2% · 88th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

36

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.2%

Affected systems

VendorProduct
rubygemsrubygems
debiandebian linux
opensuseleap
redhatenterprise linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux9.0
  • opensuse leap15.0
  • opensuse leap15.1
  • redhat enterprise linux8.0
  • rubygems rubygems2.6.0 and later · up to 3.0.2 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8rubygem-abrtbefore 0.3.0-4.module_el8.5.0+259+8cec69170.3.0-4.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-abrtbefore 0.3.0-4.module_el8.5.0+2623+08a8ba320.3.0-4.module_el8.5.0+2623+08a8ba32
AlmaLinux:8rubygem-abrt-docbefore 0.3.0-4.module_el8.5.0+259+8cec69170.3.0-4.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-abrt-docbefore 0.3.0-4.module_el8.5.0+2623+08a8ba320.3.0-4.module_el8.5.0+2623+08a8ba32
AlmaLinux:8rubygem-bsonbefore 4.3.0-2.module_el8.5.0+259+8cec69174.3.0-2.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-bsonbefore 4.3.0-2.module_el8.5.0+2625+ec4185534.3.0-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-bson-docbefore 4.3.0-2.module_el8.5.0+2625+ec4185534.3.0-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-bson-docbefore 4.3.0-2.module_el8.5.0+259+8cec69174.3.0-2.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-mongobefore 2.5.1-2.module_el8.5.0+2625+ec4185532.5.1-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-mongobefore 2.5.1-2.module_el8.5.0+259+8cec69172.5.1-2.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-mongo-docbefore 2.5.1-2.module_el8.5.0+259+8cec69172.5.1-2.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-mongo-docbefore 2.5.1-2.module_el8.5.0+2625+ec4185532.5.1-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-mysql2before 0.4.10-4.module_el8.5.0+259+8cec69170.4.10-4.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-mysql2before 0.4.10-4.module_el8.5.0+2625+ec4185530.4.10-4.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-mysql2-docbefore 0.4.10-4.module_el8.5.0+2625+ec4185530.4.10-4.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-mysql2-docbefore 0.4.10-4.module_el8.5.0+259+8cec69170.4.10-4.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-pgbefore 1.0.0-2.module_el8.5.0+259+8cec69171.0.0-2.module_el8.5.0+259+8cec6917
AlmaLinux:8rubygem-pgbefore 1.0.0-2.module_el8.5.0+2625+ec4185531.0.0-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-pg-docbefore 1.0.0-2.module_el8.5.0+2625+ec4185531.0.0-2.module_el8.5.0+2625+ec418553
AlmaLinux:8rubygem-pg-docbefore 1.0.0-2.module_el8.5.0+259+8cec69171.0.0-2.module_el8.5.0+259+8cec6917
Alpine:v3.6rubybefore 2.4.6-r02.4.6-r0
Alpine:v3.8rubybefore 2.5.5-r02.5.5-r0
Debian:12jrubybefore 9.1.17.0-39.1.17.0-3
Debian:12rubygemsbefore 3.2.0~rc.1-13.2.0~rc.1-1

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-0903RubyGems versions between 2.0.0 and 2.6.13 are vulnerable to a possible remote code execution vulnerability.
    44Plan
  • CVE-2017-0899RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters.
    42Plan
  • CVE-2018-1000076RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series
    40Plan
  • CVE-2017-0901RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any f
    39Monitor
  • CVE-2022-36073RubyGems allows creation of users with arbitrary unverified emails
    35Monitor
  • CVE-2017-0902RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vulnerability that allows a MITM attacker to force the RubyGems client
    33Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:rubygem-abrt0.3.0-4.module_el8.5.0+259+8cec6917 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson4.3.0-2.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-mongo2.5.1-2.module_el8.5.0+259+8cec6917 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-mongo-doc2.5.1-2.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-mysql20.4.10-4.module_el8.5.0+259+8cec6917 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-mysql2-doc0.4.10-4.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-pg1.0.0-2.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-pg-doc1.0.0-2.module_el8.5.0+2625+ec418553 · AlmaLinux:8Package registry (OSV)
alpine:ruby2.4.6-r0 · Alpine:v3.6Package registry (OSV)
debian:jruby9.1.17.0-3 · Debian:12Package registry (OSV)
debian:ruby2.12.1.5-2+deb8u7 · Debian:8Package registry (OSV)
debian:ruby2.32.3.3-1+deb9u6 · Debian:9Package registry (OSV)
debian:rubygems3.2.0~rc.1-1 · Debian:12Package registry (OSV)
opensuse:ruby-bundled-gems-rpmhelper0.0.2-lp151.2.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:ruby2.52.5.5-lp151.4.3.1 · openSUSE:Leap 15.0Package registry (OSV)
red hat:rh-ruby25-ruby0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-ruby-debuginfo0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-ruby-devel0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-ruby-doc0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-ruby-irb0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-ruby-libs0:2.5.5-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-bigdecimal0:1.3.4-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-did_you_mean0:1.2.0-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-io-console0:0.4.6-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-json0:2.1.0-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-minitest0:5.10.3-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby25-rubygem-net-telnet0:0.1.1-7.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
rocky linux:rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02 · Rocky Linux:8Package registry (OSV)

+8

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-primary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records