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.
CVSS Details
- CVSS 3.1 Base Score: 7.5
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Oracle_linux | — | Upgrade ruby-docsUpgrade ruby-tcltkUpgrade rubyUpgrade ruby-riUpgrade ruby-irbUpgrade ruby-rdocUpgrade ruby-libsUpgrade ruby-staticUpgrade ruby-devel | Oct 16, 2024 | Aug 5, 2011 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Jul 2, 2011 |
| Suse | — | Upgrade ruby-tkUpgrade ruby-test-suiteUpgrade ruby-examplesUpgrade ruby-develUpgrade ruby-doc-htmlUpgrade ruby-doc-riUpgrade ruby | Dec 12, 2013 | Jul 9, 2013 |
| Ubuntu | — | Upgrade libruby1.8Upgrade ruby1.8 | Nov 8, 2024 | Aug 5, 2011 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub