Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1nZ2Z4LWg5eGotNXY5Y84AAgak
Insecure PRNG use in random_password_generator
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.
Permalink: https://github.com/advisories/GHSA-ggfx-h9xj-5v9cJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nZ2Z4LWg5eGotNXY5Y84AAgak
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 2 years ago
Updated: 12 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-ggfx-h9xj-5v9c, CVE-2019-25061
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-25061
- https://github.com/bvsatyaram/random_password_generator/pull/1
- https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23
- https://ruby-doc.org/core-3.1.2/Random.html
- https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/random_password_generator/CVE-2019-25061.yml
- https://github.com/advisories/GHSA-ggfx-h9xj-5v9c
Blast Radius: 7.8
Affected Packages
rubygems:random_password_generator
Dependent packages: 0Dependent repositories: 11
Downloads: 71,036 total
Affected Version Ranges: <= 1.0.0
No known fixed version
All affected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 1.0.0