CVE-2011-2705Ruby-lang Ruby
Medium 5.0 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Aug 5, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | ≤ 1.8.7-334 |
| ruby-lang | ruby | 1.8.7 |
| ruby-lang | ruby | 1.8.7 |
| ruby-lang | ruby | 1.8.7 |
| ruby-lang | ruby | 1.8.7-160 |
| ruby-lang | ruby | 1.8.7-173 |
| ruby-lang | ruby | 1.8.7-248 |
| ruby-lang | ruby | 1.8.7-249 |
| ruby-lang | ruby | 1.8.7-299 |
| ruby-lang | ruby | 1.8.7-302 |
| ruby-lang | ruby | 1.8.7-330 |
| ruby-lang | ruby | 1.8.7-p21 |
| ruby-lang | ruby | 1.9 |
| ruby-lang | ruby | 1.9 |
| ruby-lang | ruby | 1.9.0 |
| ruby-lang | ruby | 1.9.0 |
| ruby-lang | ruby | 1.9.0-0 |
| ruby-lang | ruby | 1.9.0-1 |
| ruby-lang | ruby | 1.9.0-2 |
| ruby-lang | ruby | 1.9.0-20060415 |
| ruby-lang | ruby | 1.9.0-20070709 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.2 |
| ruby-lang | ruby | 1.9.2 |
| ruby-lang | ruby | 1.9.2-p136 |
| ruby-lang | ruby | 1.9.2-p180 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:8838 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7305 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7307 · Apr 21, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.fedoraproject.org Patch
- lists.fedoraproject.org
- redmine.ruby-lang.org
- svn.ruby-lang.org Patch
- svn.ruby-lang.org
- svn.ruby-lang.org
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.redhat.com
- www.ruby-lang.org Patch
- www.ruby-lang.org Patch
- www.securityfocus.com
- bugzilla.redhat.com Patch