CVE-2026-8647: CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator in MIK Crypt::ScryptKDF
CVE-2026-8647 is a medium severity vulnerability in the Perl module Crypt::ScryptKDF versions through 0.010. The module uses an insecure random number source when no cryptographically secure pseudo-random number generator (CSPRNG) module is available. Specifically, the random_bytes function falls back to the built-in rand() function, which is not cryptographically secure. This weakness can reduce the effectiveness of cryptographic operations relying on this module.
AI Analysis
Technical Summary
Crypt::ScryptKDF versions through 0.010 for Perl use an insecure random number source if no CSPRNG modules such as Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure are installed. In this case, the random_bytes function falls back to the built-in rand() function, which is a cryptographically weak pseudo-random number generator. This behavior is classified under CWE-338. The CVSS v3.1 base score is 4.8 (medium severity) with network attack vector, high attack complexity, no privileges or user interaction required, and limited confidentiality and integrity impact.
Potential Impact
The use of a cryptographically weak pseudo-random number generator can weaken the security of cryptographic operations that depend on randomness from Crypt::ScryptKDF. This may lead to reduced confidentiality and integrity guarantees in applications using this module without a proper CSPRNG installed. There are no known exploits in the wild reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation level has been published by the vendor. Users should ensure that at least one supported CSPRNG Perl module (e.g., Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure) is installed and available in their environment to avoid fallback to the insecure rand() function. Monitor the vendor advisory for updates regarding an official fix.
CVE-2026-8647: CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator in MIK Crypt::ScryptKDF
Description
CVE-2026-8647 is a medium severity vulnerability in the Perl module Crypt::ScryptKDF versions through 0.010. The module uses an insecure random number source when no cryptographically secure pseudo-random number generator (CSPRNG) module is available. Specifically, the random_bytes function falls back to the built-in rand() function, which is not cryptographically secure. This weakness can reduce the effectiveness of cryptographic operations relying on this module.
CVSS v3.1
Score 4.8medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Crypt::ScryptKDF versions through 0.010 for Perl use an insecure random number source if no CSPRNG modules such as Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure are installed. In this case, the random_bytes function falls back to the built-in rand() function, which is a cryptographically weak pseudo-random number generator. This behavior is classified under CWE-338. The CVSS v3.1 base score is 4.8 (medium severity) with network attack vector, high attack complexity, no privileges or user interaction required, and limited confidentiality and integrity impact.
Potential Impact
The use of a cryptographically weak pseudo-random number generator can weaken the security of cryptographic operations that depend on randomness from Crypt::ScryptKDF. This may lead to reduced confidentiality and integrity guarantees in applications using this module without a proper CSPRNG installed. There are no known exploits in the wild reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation level has been published by the vendor. Users should ensure that at least one supported CSPRNG Perl module (e.g., Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure) is installed and available in their environment to avoid fallback to the insecure rand() function. Monitor the vendor advisory for updates regarding an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-14T22:46:50.791Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a162a4be29bf47b50736dde
Added to database: 05/26/2026, 23:18:35 UTC
Last enriched: 06/03/2026, 20:50:39 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 98
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.