Vulnerability in Perl Crypt::random
CVE-2025-1828
Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions.
If the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available Crypt::Random will default to use the insecure Crypt::Random::rand provider.
In particular, Windows versions of perl will encounter this issue by default.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 35.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Perl Crypt::random — versions 1.05
- Timlegge Crypt\:\:random
Weakness classification (CWE)
References
- perldoc.perl.org/functions/rand (Patch)
- github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1 (Patch, Issue Tracking)
- github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76e… (Patch)