CVE-2011-2705

ruby: Properly initialize the random number generator when forking new process

Published Aug 5, 2011 CVSS 2.0 · 5.0 Medium EPSS 2.2% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-88-1 ruby1.8 security update
Debian DLA Debian DLA DLA-235-1 ruby1.9.1 security update
EUVD EUVD EUVD-2011-2686 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.
Ubuntu USN Ubuntu USN USN-1377-1 Ruby vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 6, 2024, 11:08 PM
Reserved
Jul 11, 2011, 12:00 AM
Status
Modified
Published
Aug 5, 2011, 9:55 PM
Modified
Jun 16, 2026, 11:31 PM
Severity
Low
Public date
Jul 2, 2011, 12:00 AM