Live threats

All CVEs

CVE-2026-122093

Predictable random number generator in Strong::Random for Perl

Critical 9.1 No auth neededRecent

Priority
76
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Nov 25, 2026
Updated
Dec 1, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-327
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

Strong::Random version 0.96 and earlier for Perl contains a weak random number generator that allows predicting all future outputs from three consecutive previous outputs. An attacker who observes three consecutive outputs can predict tokens, passwords, or key bytes that the same object later generates for other users.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

No patch data

Replace Strong::Random with a cryptographically secure random generator such as Crypt::Random or use the operating system's rand() function with a secure seed.

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official sources

References

Links published by the sources. Open them with care.