ruby: Properly initialize the random number generator when forking new process
Published Aug 5, 2011
5.0
MEDIUMCVSS 2.0
EPSS 2.58%
Description
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
No data.
- ≤ 1.8.7-334
- 1.8.7
- 1.8.7
- 1.8.7
- 1.8.7-160
- 1.8.7-173
- 1.8.7-248
- 1.8.7-249
- 1.8.7-299
- 1.8.7-302
- 1.8.7-330
- 1.8.7-p21
No data.
Red Hat Hardened Images
ruby3-3-main-3.3.10-23.1.hum1
Fixed · RHSA-2026:7305
Red Hat Hardened Images
ruby3-4-main-3.4.8-31.1.hum1
Fixed · RHSA-2026:7307
Red Hat Hardened Images
ruby4-0-main-4.0.0-33.3.hum1
Fixed · RHSA-2026:8838
Red Hat Enterprise Linux 4
ruby
Affected
Red Hat Enterprise Linux 5
ruby
Affected
Red Hat Enterprise Linux 6
ruby
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | Fixed | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | Fixed | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | Fixed | RHSA-2026:8838 |
| Red Hat Enterprise Linux 4 | ruby | Affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Affected | n/a |
| Red Hat Enterprise Linux 6 | ruby | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.58% (0.02582) | 84.68th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.58% (0.02582) | 83.16th | v5 (v2026.06.15) |
| Oct 1, 2025 | 0.80% (0.00797) | 73.32th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.80% (0.01802) | 81.16th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.19% (0.04194) | 80.88th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.80% (0.01802) | 81.58th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.50% (0.00496) | 77.01th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.50% (0.00496) | 75.53th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.50% (0.00496) | 72.53th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
References (16)
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html vendor-advisoryx_refsource_FEDORAPatch
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html vendor-advisoryx_refsource_FEDORAPatch
- http://redmine.ruby-lang.org/issues/show/4338 x_refsource_CONFIRM
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713 x_refsource_CONFIRMPatch
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog x_refsource_CONFIRM
- http://www.openwall.com/lists/oss-security/2011/07/11/1 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2011/07/12/14 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2011/07/20/1 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2011/07/20/16 mailing-listx_refsource_MLISTPatch
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ x_refsource_CONFIRMPatch
- http://www.securityfocus.com/bid/49015 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2011-2686 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=722415 x_refsource_CONFIRMPatchIssue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/69032 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2011-2686
- https://www.cve.org/CVERecord?id=CVE-2011-2686
Change history (0)
No recorded changes yet.