|
| 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 vulnerabilites 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 vulnerabilites 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.7 and all versions of Ruby 2.2 prior to it |
| 28 | +* Ruby 2.3.4 and all versions of Ruby 2.3 prior to it |
| 29 | +* Ruby 2.4.1 and all versions of Ruby 2.4 prior to it |
| 30 | +* prior to trunk revision 59672 |
| 31 | + |
| 32 | +## Workarounds |
| 33 | + |
| 34 | +At this time, the fixed versions of Ruby have not been released yet. |
| 35 | +But you can upgrade RubyGems to latest version (2.6.13 or later), then the vulnerabilites will be fixed. |
| 36 | + |
| 37 | +``` |
| 38 | +gem update --system |
| 39 | +``` |
| 40 | + |
| 41 | +If you can not upgrade RubyGems, the following patches can be applied as workarounds. |
| 42 | + |
| 43 | +* [for Ruby 2.2.7](https://bugs.ruby-lang.org/attachments/download/6690/rubygems-2613-ruby22.patch) |
| 44 | +* [for Ruby 2.3.4](https://bugs.ruby-lang.org/attachments/download/6691/rubygems-2613-ruby23.patch) |
| 45 | +* [for Ruby 2.4.1](https://bugs.ruby-lang.org/attachments/download/6692/rubygems-2612-ruby24.patch) |
| 46 | + |
| 47 | +## Credits |
| 48 | + |
| 49 | +This report is based on [the official blog of RubyGems](http://blog.rubygems.org/2017/08/27/2.6.13-released.html). |
| 50 | + |
| 51 | +## History |
| 52 | + |
| 53 | +* Originally published at 2017-08-29 12:00:00 UTC |
0 commit comments