Vulnerabilities · 2011 · Ruby-lang
CVE-2011-2705
Ruby-lang Ruby vulnerability
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.
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
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050 · 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
- www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/ · Patch
- nvd.nist.gov/vuln/detail/CVE-2011-2705
- cve.org/CVERecord?id=CVE-2011-2705
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.