Live threats

All CVEs / Ruby-lang

CVE-2011-2686Ruby-lang Ruby

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
2.6%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Aug 5, 2011
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-310
Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 1.8.7-334
ruby-langruby1.8.7
ruby-langruby1.8.7
ruby-langruby1.8.7
ruby-langruby1.8.7-160
ruby-langruby1.8.7-173
ruby-langruby1.8.7-248
ruby-langruby1.8.7-249
ruby-langruby1.8.7-299
ruby-langruby1.8.7-302
ruby-langruby1.8.7-330
ruby-langruby1.8.7-p21

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.