CVE-2011-2705

Summary

CVECVE-2011-2705
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2011-08-05 21:55:04 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe 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

Primary CVSS: v2.0 5 from [email protected]

AV:N/AC:L/Au:N/C:P/I:N/A:N

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None

AV:N/AC:L/Au:N/C:P/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report