Skip to content

Commit 7070372

Browse files
committed
Multiple vulnerabilities in RubyGems
1 parent c323a7a commit 7070372

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 用](https://bugs.ruby-lang.org/attachments/download/6692/rubygems-2612-ruby24.patch)
46+
47+
## クレジット
48+
49+
この脆弱性情報は、[RubyGems 公式ブログ](http://blog.rubygems.org/2017/08/27/2.6.13-released.html)に基づいています。
50+
51+
## 更新履歴
52+
53+
* 2017-08-29 21:00:00 (JST) 初版

0 commit comments

Comments
 (0)