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
Published Aug 5, 2011
5.0
MEDIUMCVSS 2.0
EPSS 2.25%
Description
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
No data.
Configuration 1
- ≤ 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
Configuration 2
- 1.9
- 1.9
- 1.9.0
- 1.9.0
- 1.9.0-0
- 1.9.0-1
- 1.9.0-2
- 1.9.0-20060415
- 1.9.0-20070709
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.1
- 1.9.2
- 1.9.2
- 1.9.2-p136
- 1.9.2-p180
No data.
Red Hat Enterprise Linux 6
ruby-0:1.8.7.352-3.el6
Fixed · RHSA-2011:1581
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
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | ruby-0:1.8.7.352-3.el6 | Fixed | RHSA-2011:1581 |
| 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 |
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 (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.25% (0.02248) | 82.27th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.97% (0.01966) | 77.71th | v5 (v2026.06.15) |
| Mar 17, 2025 | 1.61% (0.01611) | 80.50th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.52% (0.00523) | 77.65th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.52% (0.00523) | 76.19th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.52% (0.00523) | 73.30th | 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 (18)
- 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_FEDORA
- http://redmine.ruby-lang.org/issues/4579 x_refsource_CONFIRM
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050 x_refsource_CONFIRMPatch
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog x_refsource_CONFIRM
- http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/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.redhat.com/support/errata/RHSA-2011-1581.html vendor-advisoryx_refsource_REDHAT
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ x_refsource_CONFIRMPatch
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/ x_refsource_CONFIRMPatch
- http://www.securityfocus.com/bid/49015 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2011-2705 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=722415 x_refsource_CONFIRMPatch
- https://nvd.nist.gov/vuln/detail/CVE-2011-2705
- https://www.cve.org/CVERecord?id=CVE-2011-2705
Change history (0)
No recorded changes yet.