CVEvulnerability
CVE-2019-25061
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-05-18
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-335
Description
The random_password_generator (aka RandomPasswordGenerator) gem through 1.0.0 for Ruby uses Kernel#rand to generate passwords, which, due to its cyclic nature, can facilitate password prediction.
Affected configurations
• random password generator project random password generator (<= 1.0.0)
Related
Weakness · CWE (1)
- CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG) weakness
References
- https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23 Third Party Advisory
- https://github.com/bvsatyaram/random_password_generator/pull/1 Issue Tracking, Third Party Advisory
- https://ruby-doc.org/core-3.1.2/Random.html Third Party Advisory
- https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560 Exploit, Third Party Advisory
- https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23 Third Party Advisory
- https://github.com/bvsatyaram/random_password_generator/pull/1 Issue Tracking, Third Party Advisory
- https://ruby-doc.org/core-3.1.2/Random.html Third Party Advisory
- https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560 Exploit, Third Party Advisory