Ruby before 1.8.7-p352 does not reset the random seed upon forking, which makes it easier…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · None · None
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 12
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | up to 1.8.7-334 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p22:*:*:*:*:*:* | 1.8.7 p22 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p71:*:*:*:*:*:* | 1.8.7 p71 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p72:*:*:*:*:*:* | 1.8.7 p72 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-160:*:*:*:*:*:*:* | 1.8.7-160 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-173:*:*:*:*:*:*:* | 1.8.7-173 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-248:*:*:*:*:*:*:* | 1.8.7-248 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-249:*:*:*:*:*:*:* | 1.8.7-249 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-299:*:*:*:*:*:*:* | 1.8.7-299 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.8.7-302:*:*:*:*:*:*:* | 1.8.7-302 | Vulnerable | ruby |
- cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* Versions up to 1.8.7-334 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7:p22:*:*:*:*:*:* Versions 1.8.7 p22 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7:p71:*:*:*:*:*:* Versions 1.8.7 p71 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7:p72:*:*:*:*:*:* Versions 1.8.7 p72 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-160:*:*:*:*:*:*:* Versions 1.8.7-160 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-173:*:*:*:*:*:*:* Versions 1.8.7-173 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-248:*:*:*:*:*:*:* Versions 1.8.7-248 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-249:*:*:*:*:*:*:* Versions 1.8.7-249 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-299:*:*:*:*:*:*:* Versions 1.8.7-299 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.8.7-302:*:*:*:*:*:*:* Versions 1.8.7-302 Vulnerable ·ruby
Remediation
Red Hat 3 advisories
- RHSA-2026:8838 Released 2026-04-17 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby4.0-4.0.0-33.3.hum1@aarch64, ruby4.0-4.0.0-33.3.hum1@src, ruby4.0-4.0.0-33.3.hum1@x86_64 +10
- RHSA-2026:7307 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.4-3.4.8-31.1.hum1@aarch64, ruby3.4-3.4.8-31.1.hum1@src, ruby3.4-3.4.8-31.1.hum1@x86_64 +10
- RHSA-2026:7305 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.3-3.3.10-23.1.hum1@aarch64, ruby3.3-3.3.10-23.1.hum1@src, ruby3.3-3.3.10-23.1.hum1@x86_64 +10
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 4 | Affected | No fix yet |
| Red Hat Enterprise Linux 5 | Affected | No fix yet |
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat Hardened Images | Fixed | RHSA-2026:7305, RHSA-2026:7307, RHSA-2026:8838 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2011-2686
- 2026-10-03 Alias added: GHSA-g8g6-3p4h-6388
- 2026-11-06 Affected versions changed · Red Hat
References
Patch 9
- [oss-security] 20110712 Re: CVE Request: ruby PRNG fixes
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/
- https://bugzilla.redhat.com/show_bug.cgi?id=722415
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713
- FEDORA-2011-9374
- [oss-security] 20110720 Re: CVE Request: ruby PRNG fixes
- [oss-security] 20110711 CVE Request: ruby PRNG fixes
- FEDORA-2011-9359
More Ruby vulnerabilities
- TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
- TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
- TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
- TI-2021-09891 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web… CVSS 3.1HIGH 7.5
- TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
- TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2011-2686 · CVE Program
- CVE-2011-2686 · NVD
- FIRST EPSS
- GHSA-g8g6-3p4h-6388 · GitHub Advisory Database · CC BY 4.0
- CVE-2011-2686 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences