Back
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…
Medium5.0EPSS 2.2%
- Published
- Updated
- Reserved
- Assigned by
- redhat
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
- EPSS (exploitation in 30 days)
- 2.2% · top 17% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.0.
Weakness
Affected products
n/a
- affected n/a
References (15)
- [oss-security] 20110712 Re: CVE Request: ruby PRNG fixes (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=722415 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2011:1581 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2011-9374 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://redmine.ruby-lang.org/issues/4579 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20110711 CVE Request: ruby PRNG fixes (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 49015 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- FEDORA-2011-9359 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2011-2705)Record last updated .