CVE-2018-1000074 — Vulnerability in rubygems-update — CVE Details
RubyGems Deserialization of Untrusted Data vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.88%). Schedule for your next planned update.
Does your project use an affected rubygems-update version?
Paste your Gemfile.lock to check it for CVE-2018-1000074 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
RubyGems 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: 2.5.0 and earlier, prior to trunk revision 62422 contains a Deserialization of Untrusted Data vulnerability in owner command that can result in code execution. This attack requires the victim to run the gem owner command on a gem with a specially crafted YAML file. This vulnerability is fixed in 2.7.6.
Advisory Timeline
- First published May 14, 2022 (1657 days ago).
- Last revised March 12, 2024 — 668 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install rubygems-update -v 2.7.6
<!-- Update pom.xml dependency version to 9.1.16.0 for org.jruby:jruby-stdlib -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: Maven (1), RubyGems (1).
| Package | Fixed In |
|---|---|
| rubygems-update RubyGems · Affected: 0.8.10, 0.8.11, 0.8.3, 0.8.4 (+144 more) | 2.7.6 |
| org.jruby:jruby-stdlib Maven · Affected: 1.6.0, 1.6.1, 1.6.2, 1.6.3 (+69 more) | 9.1.16.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000074ADVISORY
- https://github.com/jruby/jruby/commit/0b06b48ab4432237ce5fc1bef47f2c6bcf7843f7WEB
- https://github.com/rubygems/rubygems/commit/254e3d0ee873c008c0b74e8b8abcbdab4caa0a6dWEB
- https://github.com/rubygems/rubygems/commit/5971b486d4dbb2bad5d3445b3801c456eb0ce183WEB
- https://www.debian.org/security/2018/dsa-4259WEB
- https://www.debian.org/security/2018/dsa-4219WEB
- https://usn.ubuntu.com/3685-1WEB
- https://usn.ubuntu.com/3621-2WEB
- https://usn.ubuntu.com/3621-1WEB
- https://lists.debian.org/debian-lts-announce/2019/05/msg00028.htmlWEB
- https://lists.debian.org/debian-lts-announce/2018/08/msg00028.htmlWEB
- https://lists.debian.org/debian-lts-announce/2018/04/msg00017.htmlWEB
- https://access.redhat.com/errata/RHSA-2020:0663WEB
- https://access.redhat.com/errata/RHSA-2020:0591WEB
- https://access.redhat.com/errata/RHSA-2020:0542WEB
- https://access.redhat.com/errata/RHSA-2019:2028WEB
- https://access.redhat.com/errata/RHSA-2018:3731WEB
- https://access.redhat.com/errata/RHSA-2018:3730WEB
- https://access.redhat.com/errata/RHSA-2018:3729WEB
- https://blog.rubygems.org/2018/02/15/2.7.6-released.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlWEB
Frequently Asked Questions
- What is CVE-2018-1000074?
- RubyGems Deserialization of Untrusted Data vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.8/10).
- How do I check if my project is affected by CVE-2018-1000074?
- CVE-2018-1000074 affects rubygems-update and org.jruby:jruby-stdlib. It has a 2.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-1000074 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 87.6% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2018-1000076CRITICAL
RubyGems Improper Verification of Cryptographic Signature vulnerability
- CVE-2019-8323HIGH
RubyGems Escape sequence injection vulnerability in api response handling
- CVE-2019-8325HIGH
RubyGems Escape sequence injection in errors
- CVE-2019-8320HIGH
RubyGems Delete directory using symlink when decompressing tar
- CVE-2017-0902HIGH
RubyGems has Origin Validation Error vulnerability
- CVE-2018-1000075HIGH
RubyGems Infinite Loop vulnerability
- CVE-2018-1000073HIGH
RubyGems Link Following vulnerability
- CVE-2018-1000078MEDIUM
RubyGems Cross-site Scripting vulnerability