CVE-2017-0902 — Vulnerability in rubygems-update — CVE Details
RubyGems has Origin Validation Error vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (4.75%). Schedule for your next planned update.
Does your project use an affected rubygems-update version?
Paste your Gemfile.lock to check it for CVE-2017-0902 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 2.6.12 and earlier is vulnerable to a DNS hijacking vulnerability that allows a MITM attacker to force the RubyGems client to download and install gems from a server that the attacker controls.
Advisory Timeline
- First published May 13, 2022 (1658 days ago).
- Last revised February 22, 2024 — 650 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install rubygems-update -v 2.6.13
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| rubygems-update RubyGems · Affected: 0.8.10, 0.8.11, 0.8.3, 0.8.4 (+135 more) | 2.6.13 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-346Origin Validation ErrorMITRE
- CWE-350
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-0902ADVISORY
- https://github.com/rubygems/rubygems/commit/8d91516fb7037ecfb27622f605dc40245e0f8d32WEB
- https://hackerone.com/reports/218088WEB
- https://access.redhat.com/errata/RHSA-2017:3485WEB
- https://access.redhat.com/errata/RHSA-2018:0378WEB
- https://access.redhat.com/errata/RHSA-2018:0583WEB
- https://access.redhat.com/errata/RHSA-2018:0585WEB
- https://github.com/rubygems/rubygemsPACKAGE
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlWEB
- https://security.gentoo.org/glsa/201710-01WEB
- https://usn.ubuntu.com/3553-1WEB
- https://usn.ubuntu.com/3685-1WEB
- https://web.archive.org/web/20170907040741/http://www.securityfocus.com/bid/100586WEB
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249WEB
- https://www.debian.org/security/2017/dsa-3966WEB
- https://blog.rubygems.org/2017/08/27/2.6.13-released.htmlWEB
Frequently Asked Questions
- What is CVE-2017-0902?
- RubyGems has Origin Validation Error vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2017-0902?
- CVE-2017-0902 affects rubygems-update. It has a 4.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-0902 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 10% of EPSS-scored vulnerabilities — 92.6% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2018-1000076CRITICAL
RubyGems Improper Verification of Cryptographic Signature vulnerability
- CVE-2017-0903CRITICAL
RubyGems vulnerable to Deserialization of Untrusted Data
- CVE-2019-8323HIGH
RubyGems Escape sequence injection vulnerability in api response handling
- CVE-2019-8325HIGH
RubyGems Escape sequence injection in errors
- CVE-2019-8322HIGH
RubyGems Escape sequence injection vulnerability in gem owner
- CVE-2017-0900HIGH
RubyGems Improper Input Validation vulnerability
- CVE-2017-0901HIGH
RubyGems may allow a maliciously crafted gem to overwrite files
- CVE-2018-1000074HIGH
RubyGems Deserialization of Untrusted Data vulnerability