CVE-2011-2705
publishedruby: Properly initialize the random number generator when forking new process
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | redhat |
| Debian | squeeze | ruby1.8 | Advisory build | 1.8.7.302-2squeeze3 | DLA-88-1 |
| Oracle Linux | 6 | rubyi686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Red Hat Enterprise Linux | RHEL-6 | rubyi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Debian | squeeze | ruby1.9.1 | Advisory build | 1.9.2.0-2+deb6u4 | DLA-235-1 |
| Oracle Linux | 6 | rubyx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-develi686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-develx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
Show 60 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 6 | ruby-docsi686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-docsx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-irbi686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-irbx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-libsi686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-libsx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-rdoci686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-rdocx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-rii686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-rix86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-statici686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-staticx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-tcltki686 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Oracle Linux | 6 | ruby-tcltkx86_64 | Advisory build | 0:1.8.7.352-3.el6 | ELSA-2011-1581 |
| Red Hat Enterprise Linux | RHEL-6 | rubyppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | rubys390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | rubysrc | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | rubyx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfoi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfoppc | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfoppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfos390 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfos390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-debuginfox86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-develi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-develppc | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-develppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-devels390 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-devels390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-develx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-docsi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-docsppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-docss390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-docsx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-irbi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-irbppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-irbs390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-irbx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libsi686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libsppc | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libsppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libss390 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libss390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-libsx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rdoci686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rdocppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rdocs390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rdocx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rii686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rippc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-ris390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-rix86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-statici686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-staticppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-statics390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-staticx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-tcltki686 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-tcltkppc64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-tcltks390x | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
| Red Hat Enterprise Linux | RHEL-6 | ruby-tcltkx86_64 | Advisory build | 1.8.7.352-3.el6 | RHSA-2011:1581 |
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.
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
15- 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/4579
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050
- 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
- [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
- RHSA-2011:1581 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/
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/
- 49015 http://www.securityfocus.com/bid/49015
- https://bugzilla.redhat.com/show_bug.cgi?id=722415
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 53ac80920605705ebb04920f181914f11129623d486723a0259aa3b74cfd8bab
- Ingested
- 23 Sep 2026, 07:39:02 UTC
- Source record
- Official CVE record