Back to CVE catalog
CVE-2011-2705

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

Attack complexityLow
ConfidentialityPartial
IntegrityNone
AvailabilityNone

CVSS summary v2.0

5.0Medium
Published:
Updated:
EPSS:
2.248%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:ruby-langrubyAffected versions:
≤ 1.8.7-334Show full version range for ruby
1.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:oraclelinuxruby
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-devel
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-docs
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-irb
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-libs
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-rdoc
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-ri
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-static
Environments (1)
  • cpe:/o:oracle:linux:6
Affected versions:
< 0:1.8.7.352-3.el6
Vendor:oraclelinuxruby-tcltk
Environments (1)
  • cpe:/o:oracle:linux:6
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:N
nvd · 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:N
redhat · 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:N
Red 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:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories26

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