SecureRandom predictability in Ruby
Multiple products
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v2.0
- Published:
- Updated:
- EPSS:
- 2.248%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Related CWE
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:ruby-lang | ruby | Affected versions:≤ 1.8.7-334Show full version range for ruby1.8.71.8.7-1601.8.7-1731.8.7-2481.8.7-2491.8.7-2991.8.7-3021.8.7-3301.8.7-p211.91.9.01.9.0-01.9.0-11.9.0-21.9.0-200604151.9.0-200707091.9.11.9.21.9.2-p1361.9.2-p180 |
| Vendor:oraclelinux | rubyEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-develEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-docsEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-irbEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-libsEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-rdocEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-riEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-staticEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
| Vendor:oraclelinux | ruby-tcltkEnvironments (1)
| Affected versions: < 0:1.8.7.352-3.el6 |
1–10 of 39 · Page 1 of 4
CVSS scores and metrics4
[email protected] · NVD (Primary)Primary5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:N/A:Nnvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:N/A:Nredhat · Wazuh CTI (adp)2.1 / 10LowCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:N/A:NRed Hat · Red Hat VEX (adp)2.1 / 10LowCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:N/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories26
- CVE List / CNA
- NVD
- Wazuh CTI
- Red Hat VEX
- FIRST EPSS
- openwall.com
- openwall.com
- openwall.com
- securityfocus.com
- openwall.com
- svn.ruby-lang.org
- svn.ruby-lang.org
- lists.fedoraproject.org
- redmine.ruby-lang.org
- ruby-lang.org
- redhat.com
- lists.fedoraproject.org
- ruby-lang.org
- svn.ruby-lang.org
- bugzilla.redhat.com
- access.redhat.com
- SUSE CVE-2011-2705
- SUSE-SU-2012:0147-1
- linux.oracle.com
- access.redhat.com
- Mitre CVE-2011-2705
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences