{"api_version":"1","generated_at":"2026-07-23T11:58:15+00:00","cve":"CVE-2019-25061","urls":{"html":"https://cve.report/CVE-2019-25061","api":"https://cve.report/api/cve/CVE-2019-25061.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-25061","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-25061"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-05-18 11:15:00","updated_at":"2022-05-26 18:43:00"},"problem_types":["CWE-335"],"metrics":[],"references":[{"url":"https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23","name":"https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23","refsource":"MISC","tags":[],"title":"random_password_generator/random_password_generator.rb at 2855e8d7d8803dbb580ddd6cf13846394eb4530e · bvsatyaram/random_password_generator · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560","name":"https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560","refsource":"MISC","tags":[],"title":"Security of rand in ruby compared to other methods - Stack Overflow","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://ruby-doc.org/core-3.1.2/Random.html","name":"https://ruby-doc.org/core-3.1.2/Random.html","refsource":"MISC","tags":[],"title":"Class: Random (Ruby 3.1.2)","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/bvsatyaram/random_password_generator/pull/1","name":"https://github.com/bvsatyaram/random_password_generator/pull/1","refsource":"MISC","tags":[],"title":"Use SecureRandom by jodawill · Pull Request #1 · bvsatyaram/random_password_generator · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-25061","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25061","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"25061","vulnerable":"1","versionEndIncluding":"1.0.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"random_password_generator_project","cpe5":"random_password_generator","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-25061","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23","refsource":"MISC","name":"https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23"},{"url":"https://ruby-doc.org/core-3.1.2/Random.html","refsource":"MISC","name":"https://ruby-doc.org/core-3.1.2/Random.html"},{"url":"https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560","refsource":"MISC","name":"https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560"},{"url":"https://github.com/bvsatyaram/random_password_generator/pull/1","refsource":"MISC","name":"https://github.com/bvsatyaram/random_password_generator/pull/1"}]}},"nvd":{"publishedDate":"2022-05-18 11:15:00","lastModifiedDate":"2022-05-26 18:43:00","problem_types":["CWE-335"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:random_password_generator_project:random_password_generator:*:*:*:*:*:ruby:*:*","versionEndIncluding":"1.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}