Back to CVE catalog
CVE-2011-2686

Ruby does not reset random seed upon forking

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityPartial
IntegrityNone
AvailabilityNone

CVSS summary v2.0

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

Related CWE

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-p21
Vendor:redhatruby
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-docs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-docs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-irb
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-irb
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-libs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-libs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-rdoc
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-rdoc
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-ri
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-ri
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-static
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-static
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-tcltk
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-tcltk
  • Other versions are affected by default; consult the source for exceptions.

1–10 of 23 · Page 1 of 3

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 advisories23

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