CVE-2017-0901: Input Validation
Last updated 11 July 2025
Other sources
RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
Upstream patch:
https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
Bug report:
https://hackerone.com/reports/243156
External References:
http://blog.rubygems.org/2017/08/27/2.6.13-released.html
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rubygemsto a version that resolves this vulnerability.Fixed in 2.6.13 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.4.2 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.2.8 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.3.5 - Upgrade
Upgrade
debian/rubygemsto a version that resolves this vulnerability.Fixed in 3.2.5-2Fixed in 3.2.5-2+deb11u1Fixed in 3.3.15-2+deb12u1Fixed in 3.6.7-2 - Upgrade
Upgrade
alpine/rubyto a version that resolves this vulnerability.Fixed in 2.4.2-r0 - Upgrade
Upgrade
alpine/rubyto a version that resolves this vulnerability.Fixed in 2.2.8-r0 - Upgrade
Upgrade
alpine/rubyto a version that resolves this vulnerability.Fixed in 2.3.5-r0 - Upgrade
Upgrade
alpine/ruby2.2to a version that resolves this vulnerability.Fixed in 2.2.8-r0 - Upgrade
Upgrade
RubyGemsto a version that resolves this vulnerability.Fixed in 2.6.13
Event History
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2017-0901.
What is the severity of CVE-2017-0901?
The severity of CVE-2017-0901 is high, with a severity value of 7.5.
How does CVE-2017-0901 affect RubyGems?
CVE-2017-0901 affects RubyGems version 2.6.12 and earlier.
What is the impact of CVE-2017-0901?
CVE-2017-0901 allows a maliciously crafted gem to potentially overwrite any file on the filesystem.
How can I fix CVE-2017-0901?
To fix CVE-2017-0901, update RubyGems to version 2.6.13 or later.