CVE-2025-2814
JSON

4.0medium

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

Severity
4.0medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

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.

Affected

Product or packageVersionsReported by
Crypt-CBCfrom 1.21 up to 3.05CVE List

Classification

CWE-329CWE-331CWE-338

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Las versiones de Crypt::CBC entre la 1.21 y la 3.04 para Perl pueden usar la función rand() como fuente predeterminada de entropía, la cual no es criptográficamente segura, para funciones criptográficas. Este problema afecta a sistemas operativos donde "/dev/urandom'" no está disponible. En ese caso, Crypt::CBC recurrirá a la función rand(), que no es segura.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-2814 changed 2025-09-05CVE Terms of Use
NVDCVE-2025-2814 changed 2026-06-17Public domain