First published: Sat Apr 05 2025(Updated: )
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.
Credit: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Affected Software | Affected Version | How to fix |
---|---|---|
Perl Web::API | <=2.8 | |
Lev Web | <=2.8 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-57868 is classified as a high severity vulnerability due to its use of a non-cryptographically secure randomness source for cryptographic functions.
To fix CVE-2024-57868, upgrade to a version of Perl Web::API later than 2.8 that does not rely on the rand() function for cryptographic operations.
The risks of CVE-2024-57868 include potential exposure of sensitive data and weakened cryptographic protections due to inadequate randomness.
CVE-2024-57868 affects all versions of Perl Web::API up to and including 2.8.
CVE-2024-57868 is linked to the Data::Random library, which is noted for providing randomness that is primarily suitable for testing rather than cryptographic purposes.