CVE-2026-122093: Predictable random-number generation in Perl Strong::Random
Strong::Random versions through 0.96 for Perl use a predictable and biased random-number generator. The generator stores its state in a single number, and each rand call multiplies that state by a factor derived from it. Returned digits encode the multiplication factor, allowing three consecutive outputs to determine the generator state regardless of the initial seed. An attacker can then predict every subsequent output from the same object. Outputs are also biased: the first digit after the decimal point is never zero, and rand(256) never returns values from 1 through 24.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Applications using an affected Strong::Random object for security-sensitive generation may expose subsequently generated tokens, passwords, or cryptographic key bytes to an attacker who observes three consecutive outputs. Sharing the object across users can allow one user's observable outputs to compromise secrets subsequently generated for others. Depending on application usage, this can undermine authentication, authorization, and cryptographic confidentiality.
Mitigation
If you can’t patch tonight, do this now.
Until a secure replacement is deployed, discontinue use of Strong::Random for tokens, passwords, cryptographic keys, and other security-sensitive values. Changing the initial seed does not prevent state recovery from three consecutive outputs.
Remediation
Patch, then assume compromise.
Replace Strong::Random with a cryptographically secure random source such as Crypt::URandom or Crypt::SysRandom. Net::SSLeay's RAND_bytes() is another alternative, provided return values and failures are handled correctly. No fixed Strong::Random release is identified.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-122093 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-122093 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-122093?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-122093.
- Is there a patch for CVE-2026-122093?
- Replace Strong::Random with a cryptographically secure random source such as Crypt::URandom or Crypt::SysRandom. Net::SSLeay's RAND_bytes() is another alternative, provided return values and failures are handled correctly.
- How severe is CVE-2026-122093?
- CVE-2026-122093 has an EPSS score of 0.23% (8th percentile) as of Nov 27, 2026.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.