Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

CVE-2011-2705


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.


Published

2011-08-05T21:55:04.530

Last Modified

2025-04-11T00:51:21.963

Status

Deferred

Source

[email protected]

Severity

CVSSv2: 5.0 (MEDIUM)

CVSSv2 Vector

AV:N/AC:L/Au:N/C:P/I:N/A:N

  • Access Vector: NETWORK
  • Access Complexity: LOW
  • Authentication: NONE
  • Confidentiality Impact: PARTIAL
  • Integrity Impact: NONE
  • Availability Impact: NONE
Exploitability Score

10.0

Impact Score

2.9

Weaknesses
  • Type: Primary
    CWE-20

Affected Vendors & Products
Type Vendor Product Version/Range Vulnerable?
Application ruby-lang ruby ≤ 1.8.7-334 Yes
Application ruby-lang ruby 1.8.7 Yes
Application ruby-lang ruby 1.8.7 Yes
Application ruby-lang ruby 1.8.7 Yes
Application ruby-lang ruby 1.8.7-160 Yes
Application ruby-lang ruby 1.8.7-173 Yes
Application ruby-lang ruby 1.8.7-248 Yes
Application ruby-lang ruby 1.8.7-249 Yes
Application ruby-lang ruby 1.8.7-299 Yes
Application ruby-lang ruby 1.8.7-302 Yes
Application ruby-lang ruby 1.8.7-330 Yes
Application ruby-lang ruby 1.8.7-p21 Yes
Application ruby-lang ruby 1.9 Yes
Application ruby-lang ruby 1.9 Yes
Application ruby-lang ruby 1.9.0 Yes
Application ruby-lang ruby 1.9.0 Yes
Application ruby-lang ruby 1.9.0-0 Yes
Application ruby-lang ruby 1.9.0-1 Yes
Application ruby-lang ruby 1.9.0-2 Yes
Application ruby-lang ruby 1.9.0-20060415 Yes
Application ruby-lang ruby 1.9.0-20070709 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.1 Yes
Application ruby-lang ruby 1.9.2 Yes
Application ruby-lang ruby 1.9.2 Yes
Application ruby-lang ruby 1.9.2-p136 Yes
Application ruby-lang ruby 1.9.2-p180 Yes

References