|
| 1 | +--- |
| 2 | +layout: news_post |
| 3 | +title: "Multiple vulnerabilities in RubyGems" |
| 4 | +author: "usa" |
| 5 | +translator: |
| 6 | +date: 2017-08-29 12:00:00 +0000 |
| 7 | +tags: security |
| 8 | +lang: en |
| 9 | +--- |
| 10 | + |
| 11 | +There are multiple vulnerabilities in RubyGems bundled by Ruby. |
| 12 | +It is [reported at the official blog of RubyGems](http://blog.rubygems.org/2017/08/27/2.6.13-released.html). |
| 13 | + |
| 14 | +## Details |
| 15 | + |
| 16 | +The following vulnerabilities have been reported. |
| 17 | + |
| 18 | +* a DNS request hijacking vulnerability |
| 19 | +* an ANSI escape sequence vulnerability |
| 20 | +* a DoS vulernerability in the query command |
| 21 | +* a vulnerability in the gem installer that allowed a malicious gem to overwrite arbitrary files |
| 22 | + |
| 23 | +It is strongly recommended for Ruby users to take one of the following workarounds as soon as possible. |
| 24 | + |
| 25 | +## Affected Versions |
| 26 | + |
| 27 | +* Ruby 2.2 series: 2.2.7 and earlier |
| 28 | +* Ruby 2.3 series: 2.3.4 and earlier |
| 29 | +* Ruby 2.4 series: 2.4.1 and earlier |
| 30 | +* prior to trunk revision 59672 |
| 31 | + |
| 32 | +## Workarounds |
| 33 | + |
| 34 | +At this moment, there are no Ruby releases including the fix for RubyGems. |
| 35 | +But you can upgrade RubyGems to the latest version. |
| 36 | +RubyGems 2.6.13 or later includes the fix for the vulnerabilities. |
| 37 | + |
| 38 | + |
| 39 | +``` |
| 40 | +gem update --system |
| 41 | +``` |
| 42 | + |
| 43 | +If you can't upgrade RubyGems, you can apply the following patches as a workaround. |
| 44 | + |
| 45 | +* [for Ruby 2.2.7](https://bugs.ruby-lang.org/attachments/download/6690/rubygems-2613-ruby22.patch) |
| 46 | +* [for Ruby 2.3.4](https://bugs.ruby-lang.org/attachments/download/6691/rubygems-2613-ruby23.patch) |
| 47 | +* for Ruby 2.4.1: need 2 patches. Apply sequentially as follows: |
| 48 | + 1. [RubyGems 2.6.11 to 2.6.12](https://bugs.ruby-lang.org/attachments/download/6692/rubygems-2612-ruby24.patch) |
| 49 | + 2. [RubyGems 2.6.12 to 2.6.13](https://bugs.ruby-lang.org/attachments/download/6693/rubygems-2613-ruby24.patch) |
| 50 | + |
| 51 | +About the trunk, update to the latest revision. |
| 52 | + |
| 53 | +## Credits |
| 54 | + |
| 55 | +This report is based on [the official blog of RubyGems](http://blog.rubygems.org/2017/08/27/2.6.13-released.html). |
| 56 | + |
| 57 | +## History |
| 58 | + |
| 59 | +* Originally published at 2017-08-29 12:00:00 UTC |
0 commit comments