CVE-2011-2705
Summary
| CVE | CVE-2011-2705 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2011-08-05 21:55:04 UTC |
| Updated | 2026-04-29 01:13:23 UTC |
| 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. |
Risk And Classification
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
PartialIntegrity
NoneAvailability
NoneAV:N/AC:L/Au:N/C:P/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Ruby-lang | Ruby | 1.8.7 | p22 | All | All |
| Application | Ruby-lang | Ruby | 1.8.7 | p71 | All | All |
| Application | Ruby-lang | Ruby | 1.8.7 | p72 | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-160 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-173 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-248 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-249 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-299 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-302 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-330 | All | All | All |
| Application | Ruby-lang | Ruby | 1.8.7-p21 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9 | r18423 | All | All |
| Application | Ruby-lang | Ruby | 1.9.0 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.0 | r18423 | All | All |
| Application | Ruby-lang | Ruby | 1.9.0-0 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.0-1 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.0-2 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.0-20060415 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.0-20070709 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -p0 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -p129 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -p243 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -p376 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -p429 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -preview_1 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -preview_2 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -rc1 | All | All |
| Application | Ruby-lang | Ruby | 1.9.1 | -rc2 | All | All |
| Application | Ruby-lang | Ruby | 1.9.2 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.2 | dev | All | All |
| Application | Ruby-lang | Ruby | 1.9.2-p136 | All | All | All |
| Application | Ruby-lang | Ruby | 1.9.2-p180 | All | All | All |
| Application | Ruby-lang | Ruby | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| oss-security - CVE Request: ruby PRNG fixes | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Patch |
| svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog | af854a3a-2127-422b-91ae-364da2661108 | svn.ruby-lang.org | |
| oss-security - Re: CVE Request: ruby PRNG fixes | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Patch |
| oss-security - Re: CVE Request: ruby PRNG fixes | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Patch |
| Ruby 1.8.7-p352 released | af854a3a-2127-422b-91ae-364da2661108 | www.ruby-lang.org | Patch |
| [ruby] Revision 32050 | af854a3a-2127-422b-91ae-364da2661108 | svn.ruby-lang.org | Patch |
| oss-security - Re: CVE Request: ruby PRNG fixes | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Patch |
| svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog | af854a3a-2127-422b-91ae-364da2661108 | svn.ruby-lang.org | |
| [SECURITY] Fedora 15 Update: ruby-1.8.7.352-1.fc15 | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Ruby Random Number Generation Local Denial Of Service Vulnerability | af854a3a-2127-422b-91ae-364da2661108 | www.securityfocus.com | |
| 722415 – (CVE-2011-2686, CVE-2011-2705, CVE-2011-3009) CVE-2011-2686 CVE-2011-2705 CVE-2011-3009 ruby: Properly initialize the random number generator when forking new process | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Patch |
| [SECURITY] Fedora 14 Update: ruby-1.8.7.352-1.fc14 | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | Patch |
| Support | af854a3a-2127-422b-91ae-364da2661108 | www.redhat.com | |
| Ruby 1.9.2-p290 is released | af854a3a-2127-422b-91ae-364da2661108 | www.ruby-lang.org | Patch |
| Bug #4579: SecureRandom + OpenSSL may repeat with fork - Ruby master - Ruby Issue Tracking System | af854a3a-2127-422b-91ae-364da2661108 | redmine.ruby-lang.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.