CVE-2024-57868Published Apr 5, 2025 · Apr 5Updated Jun 17
Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions
LEV Web::API
Medium5.5
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| LEV Web::API |
| No fix yet |
Original description
Web::API 2.8 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.
Specifically Web::API uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
From the CVE record · CPANSec