File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
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 : zh_cn
9
+ ---
10
+
11
+ Ruby 自带的 RubyGems 发现了多个漏洞。RubyGems 官方博客[ 对此有报道] ( http://blog.rubygems.org/2017/08/27/2.6.13-released.html ) 。
12
+
13
+ ## 详情
14
+
15
+ 发现的漏洞有:
16
+
17
+ * DNS 请求劫持漏洞
18
+ * ANSI 转义序列漏洞
19
+ * ` query ` 命令中的 DoS 漏洞
20
+ * gem 安装程序中的一个漏洞,能让恶意 gem 覆盖任意文件
21
+
22
+ 强烈建议 Ruby 用户采用下述临时方案规避这些漏洞。
23
+
24
+ ## 受影响的版本
25
+
26
+ * Ruby 2.2 系列:2.2.7 及之前的版本
27
+ * Ruby 2.3 系列:2.3.4 及之前的版本
28
+ * Ruby 2.4 系列:2.4.1 及之前的版本
29
+ * trunk 修订版 59672 之前的版本
30
+
31
+ ## 临时解决方案
32
+
33
+ 目前,Ruby 尚未发布新版修正上述 RubyGems 漏洞。不过你可以把 RubyGems 升级到最新的版本。RubyGems 2.6.13 或以上版本修正了上述漏洞。
34
+
35
+ ```
36
+ gem update --system
37
+ ```
38
+
39
+ 如果你无法升级 RubyGems,可以变通一下,打下述补丁。
40
+
41
+ * [ 针对 Ruby 2.2.7 的补丁] ( https://bugs.ruby-lang.org/attachments/download/6690/rubygems-2613-ruby22.patch )
42
+ * [ 针对 Ruby 2.3.4 的补丁] ( https://bugs.ruby-lang.org/attachments/download/6691/rubygems-2613-ruby23.patch )
43
+ * Ruby 2.4.1 需要两个补丁,请按下述顺序打补丁:
44
+ 1 . [ RubyGems 2.6.11~ 2.6.12] ( https://bugs.ruby-lang.org/attachments/download/6692/rubygems-2612-ruby24.patch )
45
+ 2 . [ RubyGems 2.6.12~ 2.6.13] ( https://bugs.ruby-lang.org/attachments/download/6693/rubygems-2613-ruby24.patch )
46
+
47
+ trunk 中的版本,升级到最新修订版即可。
48
+
49
+ ## 致谢
50
+
51
+ 本文基于 RubyGems 官方博客中的[ 这篇文章] ( http://blog.rubygems.org/2017/08/27/2.6.13-released.html ) 。
52
+
53
+ ## 历史
54
+
55
+ * 最初发布于 2017-08-29 12:00:00 UTC
You can’t perform that action at this time.
0 commit comments