Skip to content

Commit b5c046e

Browse files
authored
Merge pull request ruby#1625 from unak/multiple-vulnerabilities-in-rubygems
Multiple vulnerabilities in RubyGems
2 parents c323a7a + ee20a55 commit b5c046e

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
layout: news_post
3+
title: "RubyGems の複数の脆弱性について"
4+
author: "usa"
5+
translator:
6+
date: 2017-08-29 12:00:00 +0000
7+
tags: security
8+
lang: ja
9+
---
10+
11+
Ruby の標準添付ライブラリである RubyGems に、複数の脆弱性が発見されました。
12+
RubyGems の公式ブログにて[報告されています](http://blog.rubygems.org/2017/08/27/2.6.13-released.html)
13+
14+
## 詳細
15+
16+
以下の脆弱性が報告されています。
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+
Ruby ユーザには、以下に示すいずれかの対策を速やかに行うことを強く推奨します。
24+
25+
## 影響を受けるバージョン
26+
27+
* Ruby 2.2.7 以前の全ての Ruby 2.2 系列
28+
* Ruby 2.3.4 以前の全ての Ruby 2.3 系列
29+
* Ruby 2.4.1 以前の全ての Ruby 2.4 系列
30+
* revision 59672 より前の開発版
31+
32+
## 回避策
33+
34+
現時点では、本件に対応した Ruby はリリースされていませんが、以下のコマンドを実行することにより、RubyGems を最新版(2.6.13 以降)に更新することによって、各脆弱性が修正されます。
35+
36+
```
37+
gem update --system
38+
```
39+
40+
もし何らかの事情で RubyGems 全体を更新できない場合は、脆弱性対応のみを行うパッチが公開されています。
41+
各バージョン用に用意されていますので、以下より入手・適用してください。
42+
43+
* [Ruby 2.2.7 用](https://bugs.ruby-lang.org/attachments/download/6690/rubygems-2613-ruby22.patch)
44+
* [Ruby 2.3.4 用](https://bugs.ruby-lang.org/attachments/download/6691/rubygems-2613-ruby23.patch)
45+
* Ruby 2.4.1 用: 両方のパッチを順次適用してください。
46+
1. [RubyGems 2.6.11 から 2.6.12 へのパッチ](https://bugs.ruby-lang.org/attachments/download/6692/rubygems-2612-ruby24.patch)
47+
2. [RubyGems 2.6.12 から 2.6.13 へのパッチ](https://bugs.ruby-lang.org/attachments/download/6693/rubygems-2613-ruby24.patch)
48+
49+
開発版については、最新のリビジョンに更新してください。
50+
51+
## クレジット
52+
53+
この脆弱性情報は、[RubyGems 公式ブログ](http://blog.rubygems.org/2017/08/27/2.6.13-released.html)に基づいています。
54+
55+
## 更新履歴
56+
57+
* 2017-08-29 21:00:00 (JST) 初版

0 commit comments

Comments
 (0)