Improper input validation in Ruby-Lang Ruby
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.022, 83.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Ruby — versions 1.8.7, 1.8.7-160, 1.8.7-173
Weakness classification (CWE)
References
- [oss-security] 20110712 Re: CVE Request: ruby PRNG fixes (mailing-list, Patch)
- www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ (Patch)
- bugzilla.redhat.com/show_bug.cgi (Patch)
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes (mailing-list, Patch)
- RHSA-2011:1581 (vendor-advisory)
- www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/ (Patch)
- svn.ruby-lang.org/cgi-bin/viewvc.cgi (Patch)
- svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
- FEDORA-2011-9374 (vendor-advisory, Patch)
- svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog