CVE-2025-1828

published 10 Mar 2025 · updated 9 Sep 2025

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

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Crypt::Random 1.56.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PerlCrypt::Random>=1.05 <1.561.56

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Perl, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-1828 severity on Zeptric[![CVE-2025-1828](https://zeptric.io/badge/cve/CVE-2025-1828.svg)](https://zeptric.io/cve/CVE-2025-1828)