High severity · published Mar 10, 2025
CVE-2025-1828
Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions
8.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CR
Crypt::Random · perl
1.05 before 1.56 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-1828
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-1828
Patch
https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05
Issue Tracking
https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1
Patch
https://perldoc.perl.org/functions/rand
