We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-2814

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



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.

Reserved 2025-03-26 | Published 2025-04-12 | Updated 2025-04-14 | Assigner CPANSec

Problem types

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

Product status

Default status
unaffected

1.21
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

cve.org (CVE-2025-2814)

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

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-2814

Support options

Helpdesk Chat, Email, Knowledgebase