CVE-2011-2705: Input Validation
It was found that Ruby did not properly reinitialize the random number generator, when forking new Ruby process. A local attacker could use this flaw to easier predict random numbers.
References: [1] https://bugzilla.novell.com/showbug.cgi?id=704409 [2] http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ [3] http://redmine.ruby-lang.org/issues/4579 [4] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713 [5] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050 [6] http://www.openwall.com/lists/oss-security/2011/07/11/1 [7] http://www.openwall.com/lists/oss-security/2011/07/12/14
Other sources
The SecureRandom.randombytes 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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.8.7-p352 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.2-p290
Event History
Frequently Asked Questions
What is the severity of CVE-2011-2705?
CVE-2011-2705 is considered to have moderate severity due to its impact on the predictability of random number generation in Ruby.
How do I fix CVE-2011-2705?
To fix CVE-2011-2705, upgrade to Ruby version 1.8.7-p352 or later, or 1.9.2-p290 or later.
What are the affected versions by CVE-2011-2705?
CVE-2011-2705 affects Ruby versions before 1.8.7-p352 and all 1.9.x versions prior to 1.9.2-p290.
What type of vulnerability is CVE-2011-2705?
CVE-2011-2705 is a vulnerability related to insufficient randomness in cryptographic functions.
Who can be affected by CVE-2011-2705?
Context-dependent attackers who can predict random strings generated by vulnerable Ruby versions can be affected by CVE-2011-2705.