CVE-2011-2686Ruby-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.6% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Aug 5, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-310
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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.
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 |
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 Patch
- redmine.ruby-lang.org
- svn.ruby-lang.org Patch
- svn.ruby-lang.org
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.ruby-lang.org Patch
- www.securityfocus.com
- bugzilla.redhat.com Patch
- exchange.xforce.ibmcloud.com