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 package | Versions | Reported by |
|---|---|---|
| Crypt-CBC | from 1.21 up to 3.05 | CVE List |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-2814 changed 2025-09-05 | CVE Terms of Use |
| NVD | CVE-2025-2814 changed 2026-06-17 | Public domain |