CVE-2011-2705
MEDIUM · CVSS 5.0EPSS 2.2%EU EUVD
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.
Key facts
- CVSS score
- 5.0 (v2.0)
- Severity
- MEDIUM
- CVSS vector
AV:N/AC:L/Au:N/C:P/I:N/A:N- Weakness (CWE)
- CWE-20
- EPSS score
- 2.2% (83th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2011-2686)
- Published
- August 5, 2011
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2011-2686 in the EU Vulnerability Database. Last updated in EUVD on August 6, 2024.
View on the EU Vulnerability DatabaseAffected products
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
- ruby-lang / ruby
References
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html(Patch)
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
- http://redmine.ruby-lang.org/issues/4579
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050(Patch)
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
- http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog
- http://www.openwall.com/lists/oss-security/2011/07/11/1(Patch)
- http://www.openwall.com/lists/oss-security/2011/07/12/14(Patch)
- http://www.openwall.com/lists/oss-security/2011/07/20/1(Patch)
- http://www.openwall.com/lists/oss-security/2011/07/20/16(Patch)
- http://www.redhat.com/support/errata/RHSA-2011-1581.html
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/(Patch)
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/(Patch)
- http://www.securityfocus.com/bid/49015
- https://bugzilla.redhat.com/show_bug.cgi?id=722415(Patch)
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain