Skip to content
OpenAdvisories
High · 8.8 CVE-2025-1828 EUVD-2025-7415GHSA-jqxq-7f92-m7ww

Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions

Published Mar 10, 2025 · Updated Sep 9, 2025 · Assigned by CPANSec

Description

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.

Affected products

VendorProductAffectedFixed
perl Crypt::Random 1.05 – < 1.56 1.56

References