CVE-2011-2686
publishedruby: Properly initialize the random number generator when forking new process
Package status and fixes
Description
Ruby before 1.8.7-p352 does not reset the random seed upon forking, which makes it easier for context-dependent attackers to predict the values of random numbers by leveraging knowledge of the number sequence obtained in a different child process, a related issue to CVE-2003-0900. NOTE: this issue exists because of a regression during Ruby 1.8.6 development.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | redhat · cna |
Weaknesses
1- n/a
References
13- FEDORA-2011-9374 http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html
- FEDORA-2011-9359 http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
- http://redmine.ruby-lang.org/issues/show/4338
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
- [oss-security] 20110711 CVE Request: ruby PRNG fixes http://www.openwall.com/lists/oss-security/2011/07/11/1
- [oss-security] 20110712 Re: CVE Request: ruby PRNG fixes http://www.openwall.com/lists/oss-security/2011/07/12/14
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes http://www.openwall.com/lists/oss-security/2011/07/20/1
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes http://www.openwall.com/lists/oss-security/2011/07/20/16
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/
- 49015 http://www.securityfocus.com/bid/49015
- https://bugzilla.redhat.com/show_bug.cgi?id=722415
- ruby-random-number-dos(69032) https://exchange.xforce.ibmcloud.com/vulnerabilities/69032
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a46c717171865e788d965a266dcc3fcca4a3daa131699fefb9e525b8e4d7be3a
- Ingested
- 23 Sep 2026, 07:39:02 UTC
- Source record
- Official CVE record