CVE-2025-2814 Details
Description
Crypt::CBC versions between 1.21 and 3.05 for Perl may use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. This issue affects operating systems where "/dev/urandom'" is unavailable. In that case, Crypt::CBC will fallback to use the insecure rand() function.
A vulnerability exists in the Crypt::CBC module for Perl, specifically in versions 1.21 through 3.04. This issue arises because the module may default to using the rand() function for generating random numbers, which is not cryptographically secure. The vulnerability is particularly concerning on operating systems where '/dev/urandom' is not available, as Crypt::CBC will then rely on the insecure rand() function for key materials in encryption processes.
Users can upgrade to Crypt::CBC version 3.05 or later, where this vulnerability has been addressed. If an immediate upgrade is not possible, consider using a different random number generator module, such as Crypt::URandom, Crypt::Random, or Math::Random::Secure, to provide the necessary entropy for cryptographic operations.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 13, 2025CISA-ADP
Assessed Apr 14, 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/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch | CPANSec | |
| https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777 | CPANSec | Source CodeVendor |
| https://perldoc.perl.org/functions/rand | CPANSec | Not Applicable |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | CPANSec | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-329 | Generation of Predictable IV with CBC Mode | CPANSec |
| CWE-331 | Insufficient Entropy | CPANSec |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CISA-ADP |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| LDS Crypt::CBC | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | CVE Modified | CPANSec |
| Jun 14, 2025 | CVE Modified | CPANSec |
| Apr 14, 2025 | CVE Modified | CISA-ADP |
| Apr 13, 2025 | New CVE Received | CPANSec |
Volerion