CVE-2011-2705 Weak cryptography in n/a
Attackers can predict random bytes generated by Ruby's SecureRandom due to PID-based seeding, compromising cryptographic security.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2011-2705?
CVE-2011-2705 is a medium-severity vulnerability in Ruby-Lang Ruby, published on 5 Aug 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2011-2705?
It affects 1 product.
Products include Ruby-Lang Ruby.
How do I fix CVE-2011-2705?
Upgrade to a fixed version.
Is CVE-2011-2705 being exploited?
There is no known exploitation of CVE-2011-2705 in the wild and no public exploit code.
Other vulnerabilities in Ruby-Lang Ruby
Sources
Also known as GHSA-wj5x-c2v9-7wwr.