Vulnerabilities · 2011 · Ruby-lang
CVE-2011-2686
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html · Patch
- lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html · Patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713 · Patch
- www.openwall.com/lists/oss-security/2011/07/11/1 · Patch
- www.openwall.com/lists/oss-security/2011/07/12/14 · Patch
- www.openwall.com/lists/oss-security/2011/07/20/1 · Patch
- www.openwall.com/lists/oss-security/2011/07/20/16 · Patch
- www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ · Patch
- nvd.nist.gov/vuln/detail/CVE-2011-2686
- cve.org/CVERecord?id=CVE-2011-2686
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.