Home

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.

PUBLISHED Reserved 2025-03-26 | Published 2025-04-12 | Updated 2025-09-05 | Assigner CPANSec

Problem types

CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

CWE-329 Generation of Predictable IV with CBC Mode

CWE-331 Insufficient Entropy

Product status

Default status
unaffected

1.21 (custom)
affected

Credits

Robert Rothenberg (RRWO) finder

References

perldoc.perl.org/functions/rand

metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm

security.metacpan.org/...uides/random-data-for-security.html

github.com/...37111f7cd894bcec46156ba7f40a49c126ebf535.patch patch

cve.org (CVE-2025-2814)

nvd.nist.gov (CVE-2025-2814)

Download JSON