PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-8647 MIK CVE debrief

Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available. The 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.

Vendor
MIK
Product
Crypt::ScryptKDF
CVSS
MEDIUM 4.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-05-26
Original CVE updated
2026-07-23
Advisory published
2026-05-26
Advisory updated
2026-07-23

Who should care

Organizations running Perl applications that use Crypt::ScryptKDF for password hashing, key derivation, or cryptographic operations; DevOps teams managing Perl module dependencies; security auditors reviewing cryptographic implementations in Perl codebases

Technical summary

Crypt::ScryptKDF is a Perl module implementing the scrypt key derivation function. Versions through 0.010 contained a security vulnerability in the random_bytes function, which provides salt material for key derivation. When no cryptographically secure pseudo-random number generator (CSPRNG) module was available in the Perl environment, the function fell back to Perl's built-in rand() function. This fallback is cryptographically insecure as rand() is not designed for security-sensitive operations and produces predictable output. The vulnerability affects salt generation, potentially allowing attackers with knowledge of the random state to predict derived keys. The issue was resolved in version 0.011 by removing the insecure fallback mechanism.

Defensive priority

high

Recommended defensive actions

  • Upgrade to Crypt::ScryptKDF version 0.011 or later, which removes the insecure fallback to Perl's built-in rand() function
  • Verify that at least one cryptographically secure random number generator module is installed: Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure
  • Audit existing deployments to confirm no reliance on the insecure fallback behavior in versions ≤0.010
  • Review applications using Crypt::ScryptKDF for key derivation to ensure salt generation uses CSPRNG-backed sources
  • Monitor for updated security guidance from the Perl security community via oss-security

Evidence notes

The vulnerability was disclosed on oss-security on 2026-05-26. The fix is available in version 0.011. The weakness is classified as CWE-338 (Use of Cryptographically Weak PRNG).

Sources and references

Verified primary and authoritative sources

  • CVE-2026-8647 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-8647

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-8647 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-8647

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/changes

    9b29abf9-4ab0-4765-b253-1875cd9b441e

  • Source reference

    Unverified legacy reference

    URL: https://metacpan.org/release/MIK/Crypt-ScryptKDF-0.011/diff/MIK/Crypt-ScryptKDF-0.010

    9b29abf9-4ab0-4765-b253-1875cd9b441e

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.