CVE-2025-2814
4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| LDS | Crypt::CBC | 1.21 <= 3.05 | affected |
Weaknesses
- CWE-338: CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
- CWE-329: CWE-329 Generation of Predictable IV with CBC Mode
- CWE-331: CWE-331 Insufficient Entropy
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://perldoc.perl.org/functions/rand
- https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777
- https://security.metacpan.org/docs/guides/random-data-for-security.html
- https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.