Vulnerability · Published Mar 10, 2025 · Assigned by CPANSec
CVE-2025-1828Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions
High 8.8
In plain English
A high-severity security flaw in Crypt::Random from perl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities).
Official 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 (as reported)
| Vendor | Product | Versions |
|---|---|---|
| perl | Crypt::Random | 1.05 – before 1.56 |
Weakness: CWE-338, CWE-331 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H