Every CVESearch/Get API key

CVE-2011-2686

Ruby before 1.8.7-p352 does not reset the random seed upon forking, which makes it easier for...

5.0 Medium

CVE-2011-2686 is a medium vulnerability (CVSS 5.0) in Ruby-lang Ruby, published August 5, 2011. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.58%, the 85th percentile. No source names a fixed version.

What does this mean?
Severity
5.0 MediumCVSS 2.0, NVD
Exploit chance
2.58%EPSS, 85th percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
No fix listedNo source names one

Description

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.

Exploit likelihood

2.58%Down 0.1 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
ruby1.8
Debian:6.0
From an advisory covering 6 CVEs
before 1.8.7.302-2squeeze3, plus listed versions
1.8.7.302-21.8.7.302-2squeeze11.8.7.302-2squeeze2
1.8.7.302-2squeeze3
ruby3.3
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.3-bundled-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.3-default-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.3-devel
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.3-doc
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.3-libs
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.3.10-23.1.hum1
0:3.3.10-23.1.hum1
ruby3.4
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
ruby3.4-bundled-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
ruby3.4-default-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
Show 9 moreShow less
Affected packages
PackageAffectedFixed
ruby3.4-devel
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
ruby3.4-doc
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
ruby3.4-libs
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:3.4.8-31.1.hum1
0:3.4.8-31.1.hum1
ruby4.0
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1
ruby4.0-bundled-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1
ruby4.0-default-gems
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1
ruby4.0-devel
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1
ruby4.0-doc
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1
ruby4.0-libs
Red Hat:hummingbird:1
From an advisory covering 36 CVEs
before 0:4.0.0-33.3.hum1
0:4.0.0-33.3.hum1

What each source reports

NVD Score used5.0

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.

Record
CVE-2011-2686
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-310
Updated
2026-11-02
CVE ListNo score

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.

Record
CVE-2011-2686
Updated
2026-11-02
EUVDEUVD-2011-2668No score

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.

Record
EUVD-2011-2668
Updated
2026-11-03
GitHub AdvisoriesGHSA-g8g6-3p4h-6388No score

Ruby before 1.8.7-p352 does not reset the random seed upon forking, which makes it easier for...

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.

Record
GHSA-g8g6-3p4h-6388
Updated
2026-11-02
OSVBELL-CVE-2011-26865.0

CVE-2011-2686 does not affect BellSoft software

Record
BELL-CVE-2011-2686
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Updated
2026-11-02
OSVRHSA-2026:73057.5

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:7305
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVRHSA-2026:73077.5

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:7307
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVRHSA-2026:88387.5

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:8838
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 171 moreShow less
MoveEnter Open