CVE-2019-25061 json
Insecure PRNG use in random_password_generator
published 4y ago modified 4mo ago also GHSA-ggfx-h9xj-5v9c , EUVD-2022-3952
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/bvsatyaram/random_password_generator#1 pull request
Is CVE-2019-25061 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.90% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- stackoverflow.com https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | random_password_generator | <=1.0.0 |
no fix listed |
Classification
References
-
github.com
/bvsatyaram/random_password_generator/pull/1
web, issue-tracking, third-party-advisory
-
stackoverflow.com
/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560
web, exploit, third-party-advisory
-
github.com
/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_genera
web, third-party-advisory
-
ruby-doc.org
/core-3.1.2/Random.html
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-25061
advisory
-
github.com
/bvsatyaram/random_password_generator
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/random_password_generator/CVE-2019-25061.yml
web
Sources
- CVE List CVE-2019-25061
- GitHub Advisory GHSA-ggfx-h9xj-5v9c
- NVD CVE-2019-25061
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.