{"id":"CVE-2026-8647","state":"PUBLISHED","title":"Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available","description":"Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available.\n\nThe random_bytes function fell back to using the built-in rand() function when none of the Perl modules Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure were available.","publishedAt":"2026-05-26T22:53:49.993Z","updatedAt":"2026-05-28T14:09:56.026Z","severity":{"score":4.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["MIK Crypt::ScryptKDF"],"affected":[{"vendor":"MIK","product":"Crypt::ScryptKDF","packageName":"Crypt-ScryptKDF","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.010","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/ScryptKDF.pm"],"programRoutines":[{"name":"Crypt::ScryptKDF::random_bytes"}],"repo":"https://github.com/DCIT/perl-Crypt-ScryptKDF"}],"references":["https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/changes","https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/diff/MIK/Crypt-ScryptKDF-0.010#lib/Crypt/ScryptKDF.pm","http://www.openwall.com/lists/oss-security/2026/05/26/8"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/8xxx/CVE-2026-8647.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-8647","state":"PUBLISHED","datePublished":"2026-05-26T22:53:49.993Z","dateUpdated":"2026-05-28T14:09:56.026Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-05-14T22:46:50.791Z"},"containers":{"cna":{"title":"Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available","descriptions":[{"lang":"en","value":"Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available.\n\nThe random_bytes function fell back to using the built-in rand() function when none of the Perl modules Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure were available."}],"affected":[{"vendor":"MIK","product":"Crypt::ScryptKDF","packageName":"Crypt-ScryptKDF","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.010","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/ScryptKDF.pm"],"programRoutines":[{"name":"Crypt::ScryptKDF::random_bytes"}],"repo":"https://github.com/DCIT/perl-Crypt-ScryptKDF"}],"references":[{"url":"https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/diff/MIK/Crypt-ScryptKDF-0.010#lib/Crypt/ScryptKDF.pm"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-05-26T22:53:49.993Z"},"solutions":[{"lang":"en","value":"Upgrade to version 0.011 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-05-13T00:00:00.000Z","value":"Issue reported to CPANSec"},{"lang":"en","time":"2026-05-14T00:00:00.000Z","value":"Issue reported to maintainer"},{"lang":"en","time":"2026-05-16T00:00:00.000Z","value":"Version 0.011 with fix released."}],"workarounds":[{"lang":"en","value":"Install one of the recommended Perl modules, such as Crypt::PRNG."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/05/26/8"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-05-27T01:41:36.078Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4.8,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-05-28T14:09:53.476428Z","id":"CVE-2026-8647","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-28T14:09:56.026Z"}}]}}}