Strong::Random through 0.96 lets later rand values be predicted (CVE-2026-122093)
An oss-security note says three earlier outputs suffice to predict every subsequent value; no fix is named.
Predictable PRNG in Perl Strong::Random through 0.96
Strong::Random through 0.96 keeps generator state in one number. Each call multiplies that state by a factor the returned digits encode, so three consecutive outputs reveal the state no matter how it was seeded. Later outputs are then predictable, including tokens, passwords, or key bytes the same object issues to other users. Outputs are also biased: the first digit after the decimal is never zero, so rand(256) never returns 1 to 24.
What to do: No fixed version is stated. Do not use Strong::Random through 0.96 to issue tokens, passwords, or key bytes.
| Product | Affected |
|---|---|
| Strong::Random for Perl | through 0.96 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones. The generator keeps its state in a single number. Each call multiplies the state by a factor derived from it, and the returned digits encode that factor, so three consecutive outputs determine the state however the generator was seeded. Outputs are also biased: the first digit after the decimal point is never zero, so rand(256) never returns 1 to 24. An attacker who sees three consecutive outputs can predict the tokens, passwords or key bytes that the same object later issues to other users.
An oss-security note says three earlier outputs suffice to predict every subsequent value; no fix is named.
Today 1.3K readers · 1.8K views · 326 reads · all time 225K views