NVD Vulnerability Detail
Search Exploit, PoC
CVE-2011-2705
Summary

The SecureRandom.random_bytes function in lib/securerandom.rb in Ruby before 1.8.7-p352 and 1.9.x before 1.9.2-p290 relies on PID values for initialization, which makes it easier for context-dependent attackers to predict the result string by leveraging knowledge of random strings obtained in an earlier process with the same PID.

Publication Date Aug. 6, 2011, 6:55 a.m.
Registration Date Jan. 28, 2021, 4:39 p.m.
Last Update Nov. 21, 2024, 10:28 a.m.
CVSS2.0 : MEDIUM
Score 5.0
Vector AV:N/AC:L/Au:N/C:P/I:N/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I) なし
可用性への影響(A) なし
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:ruby-lang:ruby:1.8.7-302:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-249:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-299:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 1.8.7-334
cpe:2.3:a:ruby-lang:ruby:1.8.7:p71:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7:p22:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-330:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-160:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-173:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-p21:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7:p72:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.8.7-248:*:*:*:*:*:*:*
Configuration2 or higher or less more than less than
cpe:2.3:a:ruby-lang:ruby:1.9.0-0:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_2:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0-1:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0:r18423:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-p0:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0-20070709:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc2:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_1:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-p429:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc1:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.2:dev:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0-20060415:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9:r18423:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-p243:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.1:-p376:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.0-2:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.2-p180:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.2-p136:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Ruby の SecureRandom.random_bytes 関数における結果の文字列を推測される脆弱性
Title Ruby の SecureRandom.random_bytes 関数における結果の文字列を推測される脆弱性
Summary

lib/securerandom.rb in Ruby の lib/securerandom.rb の SecureRandom.random_bytes 関数は、初期化に際して PID 値に依存しているため、結果の文字列を推測される脆弱性が存在します。

Possible impacts 攻撃者により、同じ PID を持つ以前のプロセスが取得したランダム文字列の知識を介して、結果の文字列を推測される可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Aug. 5, 2011, midnight
Registration Date March 27, 2012, 6:43 p.m.
Last Update March 27, 2012, 6:43 p.m.
Affected System
Ruby-lang.org
Ruby 1.8.7-p352 未満 および 1.9.2-p290 未満の 1.9.x
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2012年03月27日]
  掲載
Feb. 17, 2018, 10:37 a.m.