{"id":"CVE-2026-122093","state":"PUBLISHED","title":"Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones","description":"Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones.\n\nThe 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.\n\nAn attacker who sees three consecutive outputs can predict the tokens, passwords or key bytes that the same object later issues to other users.","publishedAt":"2026-11-25T00:31:39.836Z","updatedAt":"2026-11-25T02:07:25.129Z","severity":null,"assigner":"CPANSec","products":["Strong-Random"],"affected":[{"packageName":"Strong-Random","packageURL":"pkg:cpan/Strong-Random","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.96","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Strong::Random"],"programFiles":["lib/Strong/Random.pm"],"programRoutines":[{"name":"Strong::Random::rand"}]}],"references":["https://metacpan.org/release/TRUNAEV/Strong-Random-0.96/source/lib/Strong/Random.pm","http://www.openwall.com/lists/oss-security/2026/11/25/1"],"weaknesses":["CWE-327"],"ingestedAt":"2026-11-25T02:16:06.143Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/122xxx/CVE-2026-122093.json","commit":"47030d9d0df0158e664f01f39ebd8037a9483787","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-122093","state":"PUBLISHED","datePublished":"2026-11-25T00:31:39.836Z","dateUpdated":"2026-11-25T02:07:25.129Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-11-04T17:17:23.037Z"},"containers":{"cna":{"title":"Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones","descriptions":[{"lang":"en","value":"Strong::Random versions through 0.96 for Perl allow every later rand output to be predicted from three earlier ones.\n\nThe 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.\n\nAn attacker who sees three consecutive outputs can predict the tokens, passwords or key bytes that the same object later issues to other users."}],"affected":[{"packageName":"Strong-Random","packageURL":"pkg:cpan/Strong-Random","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.96","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Strong::Random"],"programFiles":["lib/Strong/Random.pm"],"programRoutines":[{"name":"Strong::Random::rand"}]}],"references":[{"url":"https://metacpan.org/release/TRUNAEV/Strong-Random-0.96/source/lib/Strong/Random.pm","tags":["technical-description"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-327","description":"CWE-327 Use of a Broken or Risky Cryptographic Algorithm","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-11-25T00:31:39.836Z"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Replace Strong::Random with a cryptographically secure source such as Crypt::URandom or Crypt::SysRandom."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/11/25/1"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-11-25T02:07:25.129Z"}}]}}}