Description
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.
Published: 2026-05-26
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Crypt::ScryptKDF versions through 0.010 use the built‑in rand() function as a fallback when no cryptographically secure pseudo‑random number generator module is available. This results in deterministic, low entropy values for the salt or key material used in the scrypt key derivation function, thereby weakening the security guarantees of any system that relies on the module for generating cryptographic keys. A compromised key could expose encrypted data or authentication secrets to an attacker.

Affected Systems

The vulnerability affects the Crypt::ScryptKDF Perl library from the MIK vendor, specifically versions 0.010 and earlier. Any system that imports or employs this module in its cryptographic stack without an alternative CSPRNG module installed is susceptible.

Risk and Exploitability

The EPSS score of 0.00017 indicates a very low probability of exploitation, and the vulnerability is not listed in the KEV catalog, implying no known active attacks. However, the lack of a secure random source creates a serious weakness in key generation, potentially allowing an attacker who can observe the derived keys to predict them. Based on the description, it is inferred that the attack likely requires local or remote code execution that can load the vulnerable library, but the risk remains significant in contexts that depend on strong key material. The CVSS score is 4.8, yet the described weakness aligns with CWE-338, which typically carries high severity.

Generated by OpenCVE AI on May 28, 2026 at 18:39 UTC.

Remediation

Vendor Solution

Upgrade to version 0.011 or later.


Vendor Workaround

Install one of the recommended Perl modules, such as Crypt::PRNG.


OpenCVE Recommended Actions

  • Upgrade Crypt::ScryptKDF to version 0.011 or later.
  • Install a Perl CSPRNG module such as Crypt::PRNG, Crypt::OpenSSL::Random, Net::SSLeay, Crypt::Random, or Bytes::Random::Secure so that random_bytes uses a secure source.
  • Run tests to verify that Crypt::ScryptKDF’s random_bytes function no longer falls back to rand(), ensuring that key derivation uses a cryptographically secure random source.

Generated by OpenCVE AI on May 28, 2026 at 18:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 27 May 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Mik
Mik crypt::scryptkdf
Vendors & Products Mik
Mik crypt::scryptkdf

Wed, 27 May 2026 02:30:00 +0000

Type Values Removed Values Added
References

Tue, 26 May 2026 23:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Crypt::ScryptKDF versions through 0.010 for Perl uses insecure random number source when no CSPRNG module is available
Weaknesses CWE-338
References

Subscriptions

Mik Crypt::scryptkdf
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-05-28T14:09:56.026Z

Reserved: 2026-05-14T22:46:50.791Z

Link: CVE-2026-8647

cve-icon Vulnrichment

Updated: 2026-05-27T01:41:36.078Z

cve-icon NVD

Status : Deferred

Published: 2026-05-26T23:16:21.247

Modified: 2026-05-28T16:16:30.660

Link: CVE-2026-8647

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T18:45:24Z

Weaknesses
  • CWE-338

    Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)