Description
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.
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.
Published:
2026-11-25
Score:
n/a
EPSS:
n/a
KEV:
No
Impact:
n/a
Action:
n/a
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
Vendor Workaround
Replace Strong::Random with a cryptographically secure source such as Crypt::URandom or Crypt::SysRandom.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
Wed, 25 Nov 2026 00:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones | |
| Weaknesses | CWE-327 | |
| References |
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-11-25T00:31:39.836Z
Reserved: 2026-11-04T17:17:23.037Z
Link: CVE-2026-122093
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses
-
CWE-327
Use of a Broken or Risky Cryptographic Algorithm