CVE-2011-2686: Medium severity ruby vulnerability

Published Jul 15, 2011
·
Updated

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

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.

MITRE

Affected Software

12 affected components
ruby-lang Ruby=1.8.7-302
ruby-lang Ruby=1.8.7-249
ruby-lang Ruby=1.8.7-299
ruby-lang Ruby<=1.8.7-334
ruby-lang Ruby=1.8.7-p71
ruby-lang Ruby=1.8.7-p22
ruby-lang Ruby=1.8.7-330
ruby-lang Ruby=1.8.7-160
ruby-lang Ruby=1.8.7-173
ruby-lang Ruby=1.8.7-p21
ruby-lang Ruby=1.8.7-p72
ruby-lang Ruby=1.8.7-248

Event History

Jul 15, 2011
Data Sourced
via Red Hat·09:51 AM
DescriptionSeverityAffected Software
Aug 5, 2011
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-2686?

CVE-2011-2686 has been rated as a medium severity vulnerability due to its potential to allow local attackers to predict random numbers.

2

How do I fix CVE-2011-2686?

To fix CVE-2011-2686, users should update Ruby to a version that is not affected, specifically any version above 1.8.7-334.

3

What software versions are affected by CVE-2011-2686?

CVE-2011-2686 affects several versions of Ruby 1.8.7, including versions 1.8.7-160 through 1.8.7-334 inclusive.

4

Who can exploit CVE-2011-2686?

CVE-2011-2686 can be exploited by local attackers who can execute code in a Ruby environment.

5

What type of vulnerability is CVE-2011-2686 classified as?

CVE-2011-2686 is classified as a local information disclosure vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203