CVE-2025-2814

Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions

Published Apr 12, 2025 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Solution

Users should update to a fixed version, or apply the patch provided in the references section, or use a patched version provided by their OS distribution

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-10846 Crypt::CBC versions between 1.21 and 3.04 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.
History
Type Values Removed Values Added
Weaknesses CWE-329
CWE-331
Type Values Removed Values Added
Description Crypt::CBC versions between 1.21 and 3.04 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. 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.
Title Crypt::CBC versions between 1.21 and 3.04 for Perl may use insecure rand() function for cryptographic functions Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions
References
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Crypt::CBC versions between 1.21 and 3.04 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.
Title Crypt::CBC versions between 1.21 and 3.04 for Perl may use insecure rand() function for cryptographic functions
Weaknesses CWE-338
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Sep 5, 2025, 1:21 PM
Reserved
Mar 26, 2025, 1:51 PM
Status
Deferred
Published
Apr 13, 2025, 12:15 AM
Modified
Jun 17, 2026, 9:07 AM
Severity
Moderate
Public date
Apr 12, 2025, 11:41 PM