CVE-2011-2686: 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...
Medium CVSS 5.0
- CVE id
- CVE-2011-2686
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
<= 1.8.7-334 | after 1.8.7-334 |
How to fix it
Upgrade Ruby to a release newer than 1.8.7-334.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2011-2686 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2011-2686
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=722415
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/69032
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=722415
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/69032
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.