CVE-2025-1828 Details
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.
A vulnerability exists in the Crypt::Random Perl package, specifically in versions 1.05 through 1.55, where the rand() function, known to be cryptographically weak, is used for cryptographic purposes. This issue is particularly prevalent in the default configuration on Windows versions of Perl, where the rand provider is insecure. If /dev/urandom or an Entropy Gathering Daemon (egd) service is not available, Crypt::Random defaults to the insecure rand provider, which is not suitable for any cryptographic use or situations where randomness is crucial for security.
Users can update to Crypt::Random version 1.57 or later, where the rand provider has been switched to use Crypt::URandom, a more secure option. Instructions for updating can be found on the module's CPAN page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05 | CPANSec | Patch |
| https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1 | CPANSec | Issue TrackingPatch |
| https://perldoc.perl.org/functions/rand | CPANSec | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
| CWE-331 | Insufficient Entropy | CPANSec |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| timlegge crypt::random | >= 1.05, <= 1.55 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Sep 29, 2025 | Modified Analysis | [email protected] |
| Sep 5, 2025 | CVE Modified | CPANSec |
| Jun 27, 2025 | Initial Analysis | [email protected] |
| Mar 26, 2025 | CVE Modified | CPANSec |
| Mar 11, 2025 | CVE Modified | CISA-ADP |
| Mar 11, 2025 | New CVE Received | CPANSec |