CVE-2024-58041 PUBLISHED

Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions

Assigner: CPANSec
Reserved: 26.03.2025 Published: 23.02.2026 Updated: 23.02.2026

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.

Product Status

Vendor WONKO
Product Smolder
Versions Default: unaffected
  • affected from 0 to 1.51 (incl.)

Credits

  • Robert Rothenberg (RRWO) finder

References

Problem Types

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