Home

Description

Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions. Smolder 1.51 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Smolder::DB::Developer uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.

PUBLISHED Reserved 2025-03-26 | Published 2026-02-23 | Updated 2026-02-24 | Assigner CPANSec

Problem types

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

Product status

Default status
unaffected

Any version
affected

Credits

Robert Rothenberg (RRWO) finder

References

perldoc.perl.org/functions/rand

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

metacpan.org/...T/Data-Random-0.13/source/lib/Data/Random.pm

metacpan.org/...lder-1.51/source/lib/Smolder/DB/Developer.pm

metacpan.org/...lder-1.51/source/lib/Smolder/DB/Developer.pm

cve.org (CVE-2024-58041)

nvd.nist.gov (CVE-2024-58041)

Download JSON