CVE-2017-0901 — Vulnerability in rubygems-update — CVE Details
RubyGems may allow a maliciously crafted gem to overwrite files
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 29.44% in 30 days. Address in your next planned sprint.
Does your project use an affected rubygems-update version?
Paste your Gemfile.lock to check it for CVE-2017-0901 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 versions 2.6.12 and earlier fail to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
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.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-0901ADVISORY
- https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2WEB
- https://hackerone.com/reports/243156WEB
- 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/20170907215801/http://www.securitytracker.com/id/1039249WEB
- https://web.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100580#:~:text=1%20snapshot-,16%3A05%3A26,-NoteWEB
- https://www.debian.org/security/2017/dsa-3966WEB
- https://www.exploit-db.com/exploits/42611WEB
- https://blog.rubygems.org/2017/08/27/2.6.13-released.htmlWEB
Frequently Asked Questions
- What is CVE-2017-0901?
- RubyGems may allow a maliciously crafted gem to overwrite files. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2017-0901?
- CVE-2017-0901 affects rubygems-update. It has a 29.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-0901 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 5% of EPSS-scored vulnerabilities — 98.6% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2017-0899CRITICAL
RubyGems Code Injection 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-2019-8324HIGH
Code injection in RubyGems
- CVE-2018-1000078MEDIUM
RubyGems Cross-site Scripting vulnerability