CVE-2011-2686 json
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 va…
published 2011-08-05 15 y ago modified 2026-06-16 4 mo ago also EUVD-2011-2668
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- ruby4.0 hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-libs hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-bundled-gems hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-default-gems hummingbird 1 4.0.0-33.3.hum1
- ruby3.3 hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-libs hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-bundled-gems hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-default-gems hummingbird 1 3.3.10-23.1.hum1
red hat advisories RHSA-2026:8838RHSA-2026:7305RHSA-2026:7307
- openwall.com/lists/oss-security/2011/07/12/14 patch
- ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ patch
- bugzilla.redhat.com/show_bug.cgi?id=722415 patch
- openwall.com/lists/oss-security/2011/07/20/16 patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713 patch
- openwall.com/lists/oss-security/2011/07/20/1 patch
- openwall.com/lists/oss-security/2011/07/11/1 patch
- lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html advisory
- lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-2686 updated cvss 2.1
ruby: Properly initialize the random number generator when forking new process
-
Red Hat Enterprise Linux 4 ruby Red Hat Enterprise Linux 5 ruby Red Hat Enterprise Linux 6 ruby, ruby-ri, ruby-irb, ruby-libs, ruby-rdoc, ruby-tcltkaffected: no fix available
-
Red Hat Hardened Images ruby3.4 3.4.8-31.1.hum1, ruby4.0 4.0.0-33.3.hum1, ruby3.3 3.3.10-23.1.hum1, ruby3.4-libs 3.4.8-31.1.hum1, ruby4.0-libs 4.0.0-33.3.hum1, ruby3.3-libs 3.3.10-23.1.hum1, +6 morefixed: vendor fix RHSA-2026:7305
-
Red Hat Hardened Images rubygem3.3-rbs 3.4.0-23.1.hum1, rubygem3.3-rss 0.3.1-23.1.hum1, rubygem3.4-rbs 3.8.0-31.1.hum1, rubygem3.4-rss 0.3.1-31.1.hum1, rubygem4.0-rss 0.3.2-33.3.hum1, rubygem3.3-irb 1.13.1-23.1.hum1, +45 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.58% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-310 Cryptographic Issues
References
-
lists.fedoraproject.org
/pipermail/package-announce/2011-July/063062.html
vendor-advisory, patch
-
lists.fedoraproject.org
/pipermail/package-announce/2011-July/063071.html
vendor-advisory, patch
-
openwall.com
/lists/oss-security/2011/07/12/14
mailing-list, patch
-
ruby-lang.org
/en/news/2011/07/02/ruby-1-8-7-p352-released/
patch
-
bugzilla.redhat.com
/show_bug.cgi?id=722415
patch
-
openwall.com
/lists/oss-security/2011/07/20/16
mailing-list, patch
-
svn.ruby-lang.org
/cgi-bin/viewvc.cgi?view=revision&revision=31713
patch
-
openwall.com
/lists/oss-security/2011/07/20/1
mailing-list, patch
-
openwall.com
/lists/oss-security/2011/07/11/1
mailing-list, patch
- redmine.ruby-lang.org /issues/show/4338
- svn.ruby-lang.org /repos/ruby/tags/v1_8_7_352/ChangeLog
-
exchange.xforce.ibmcloud.com
/vulnerabilities/69032
vdb-entry
-
securityfocus.com
/bid/49015
vdb-entry
Sources
- CVE List CVE-2011-2686
- NVD CVE-2011-2686
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.