CVEfocus › CVE database › CVE-2011-2705

CVE-2011-2705

EPSS 2.2% (higher than 83% of CVEs)Published 2011-08-05Updated 2024-08-06Assigner: redhat

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.

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 6rubyFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-develFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-docsFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-irbFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-libsFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-rdocFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-riFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-staticFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 6ruby-tcltkFixed0:1.8.7.352-3.el6RHSA-2011:1581
Red Hat Enterprise Linux 5rubyFix pending
Affected
Red Hat Enterprise Linux 4rubyFix pending
Affected

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.