Multiple vulnerabilities in RubyGems
Posted by usa on 17 Feb 2018
There are multiple vulnerabilities in RubyGems bundled by Ruby. It is reported at the official blog of RubyGems.
Details
The following vulnerabilities have been reported.
- Prevent path traversal when writing to a symlinked basedir outside of the root.
- Fix possible Unsafe Object Deserialization Vulnerability in gem owner.
- Strictly interpret octal fields in tar headers.
- Raise a security error when there are duplicate files in a package.
- Enforce URL validation on spec homepage attribute.
- Mitigate XSS vulnerability in homepage attribute when displayed via gem server.
- Prevent Path Traversal issue during gem installation.
It is strongly recommended for Ruby users to upgrade your Ruby installation or take one of the following workarounds as soon as possible.
Affected Versions
- 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
Workarounds
In principle, you should upgrade your Ruby installation to the latest version. RubyGems 2.7.6 or later includes the fix for the vulnerabilities, so upgrade RubyGems to the latest version if you can’t upgrade Ruby itself.
gem update --system
If you can’t upgrade RubyGems, you can apply the following patches as a workaround.
About the trunk, update to the latest revision.
Credits
This report is based on the official blog of RubyGems.
History
- Originally published at 2018-02-17 03:00:00 UTC
- Mention about upgrading Rubies at 2018-03-29 01:00:00 UTC
Recent News
Ruby 4.0.0 Released
We are pleased to announce the release of Ruby 4.0.0. Ruby 4.0 introduces “Ruby Box” and “ZJIT”, and adds many improvements.
Posted by naruse on 25 Dec 2025
A New Look for Ruby's Documentation
Following the ruby-lang.org redesign, we have more news to celebrate Ruby’s 30th anniversary: docs.ruby-lang.org has a completely new look with Aliki—RDoc’s new default theme.
Posted by Stan Lo on 23 Dec 2025
Redesign our Site Identity
We are excited to announce a comprehensive redesign of our site. The design for this update was created by Taeko Akatsuka.
Posted by Hiroshi SHIBATA on 22 Dec 2025
Ruby 4.0.0 preview3 Released
We are pleased to announce the release of Ruby 4.0.0-preview3. Ruby 4.0 introduces Ruby::Box and “ZJIT”, and adds many improvements.
Posted by naruse on 18 Dec 2025