CVE-2026-122093: Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones
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.
Affected Software
Event History
Frequently Asked Questions
What does an attacker need to predict future values?
The attacker needs to observe three consecutive outputs from the same Strong::Random object. Those outputs determine the generator state regardless of how it was seeded, allowing prediction of later outputs from that object.
Which uses are most exposed?
Applications that use a shared Strong::Random object to issue tokens, passwords, or key bytes to multiple users are exposed when one party can observe three consecutive outputs before another party receives a security-sensitive value.
Are generated values uniformly distributed?
No. The first digit after the decimal point is never zero. As a result, rand(256) never returns values 1 through 24.
How can I determine whether an application may already be affected?
Identify uses of Strong::Random through version 0.96 and determine whether the same object produces observable values before generating tokens, passwords, or key bytes. Three consecutive observable outputs from that object are sufficient for prediction of later values.