01 Record
CVE-2019-25061
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.
UnratedPUBLISHEDCNA: mitre
CNA base scoreUnratedNo CNA CVSS vector
02 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.
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 1.90% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 79.5% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-05-18 05:49Z4 YR AGO
- Last updated
- 2024-08-05 03:00Z2 YR AGO
- Reserved
- 2022-05-18
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-335Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)Base
- Data version
- 5.1
- Document digest
- 8bf3ff10426b3706ed1e077959b906dc0d12477e6928c5eb887b3d3e135da389
05 Affected products
VendorProductVersionsPlatforms
06 References
- github.comhttps://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23
- ruby-doc.orghttps://ruby-doc.org/core-3.1.2/Random.html
- stackoverflow.comhttps://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560
- github.comhttps://github.com/bvsatyaram/random_password_generator/pull/1