{"id":"CVE-2019-25061","aliases":["EUVD-2022-3952","GHSA-ggfx-h9xj-5v9c"],"status":"published","title":"Insecure PRNG use in random_password_generator","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01903,"percentile":0.79852,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-330","CWE-335"],"published":"2022-05-18T05:49:20Z","modified":"2026-10-20T10:52:42Z","affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"random_password_generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"random_password_generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","1.0.0"]}],"products":[{"vendor":"random_password_generator_project","product":"random_password_generator"}],"references":[{"url":"https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://ruby-doc.org/core-3.1.2/Random.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/bvsatyaram/random_password_generator/pull/1","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25061","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/random_password_generator/CVE-2019-25061.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ggfx-h9xj-5v9c"},{"url":"https://github.com/bvsatyaram/random_password_generator","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2019-25061","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.","status":"published","published":"2022-05-18T05:49:20Z","modified":"2024-08-05T03:00:19.045Z","updated_at":"2026-11-02T14:20:19.399352Z"}],"euvd":[{"id":"EUVD-2022-3952","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.","status":"published","published":"2022-05-18T05:49:20Z","modified":"2024-08-05T03:00:19Z","updated_at":"2026-11-03T02:40:19.824838Z"}],"ghsa":[{"id":"GHSA-ggfx-h9xj-5v9c","title":"Insecure PRNG use in random_password_generator","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.","status":"published","published":"2022-05-19T00:00:40Z","modified":"2023-05-04T19:51:19Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-330","CWE-335"],"updated_at":"2026-11-02T14:36:52.310293Z"}],"nvd":[{"id":"CVE-2019-25061","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.","status":"published","published":"2022-05-18T11:15:10.67Z","modified":"2026-06-17T02:31:34.747Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-335"],"updated_at":"2026-11-02T14:05:49.099942Z"}],"osv":[{"id":"CVE-2019-25061","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.","status":"published","published":"2022-05-18T11:15:10.67Z","modified":"2026-10-20T10:52:42.065391203Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:12.363788Z"},{"id":"GHSA-ggfx-h9xj-5v9c","title":"Insecure PRNG use in random_password_generator","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.","status":"published","published":"2022-05-19T00:00:40Z","modified":"2023-11-08T04:01:32.858863Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-330","CWE-335"],"updated_at":"2026-11-02T15:46:47.822182Z"}]}}
