CVE-2026-122093

Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones

Published Nov 25, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Strong::Random versions up to 0.96 expose a deterministic generator that, after observing any three consecutive outputs, allows an attacker to reconstruct the internal state. The flaw aligns with CWE‑327, meaning users receive predictable pseudo‑random values. Once the state is known, all future outputs—including tokens, passwords, or key bytes—can be forecasted, compromising authentication and encryption.

Affected Systems

Perl installations that use the Strong::Random module version 0.96 or earlier are affected. Any application that depends on this module for random data—such as session tokens, password salts, or cryptographic keys—may be vulnerable.

Risk and Exploitability

The CVSS base score is not supplied, and no EPSS score is available, but the vulnerability is severe because it fully breaks randomness. The likelihood of exploitation is tied to the attacker’s ability to observe three consecutive rand values; in shared or multi‑tenant environments this is often feasible. The issue is not listed in the CISA KEV catalog, indicating no current exploitation reports, yet the deterministic nature gives attackers a powerful tool for compromising data.

Remediation

Vendor Workaround

Replace Strong::Random with a cryptographically secure source such as Crypt::URandom or Crypt::SysRandom.


OpenCVE Recommended Actions

  • Update Strong::Random to the latest available version that contains the fix, if one exists.
  • Replace the module with a cryptographically secure random source such as Crypt::URandom or Crypt::SysRandom as recommended in the workaround.
  • Audit all code paths that currently use Strong::Random and refactor them to use a secure RNG or to eliminate the dependency on random numbers for sensitive operations.

Generated by OpenCVE AI on November 25, 2026 at 01:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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.

Weaknesses
  • CWE-327

    Use of a Broken or Risky Cryptographic Algorithm

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 25, 2026, 12:31 AM
Reserved
Nov 4, 2026, 5:17 PM
Status
Received
Published
Nov 25, 2026, 1:16 AM
Modified
Nov 25, 2026, 1:16 AM