CVE-2024-57868: Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57868?
CVE-2024-57868 is classified as a high severity vulnerability due to its use of a non-cryptographically secure randomness source for cryptographic functions.
How do I fix CVE-2024-57868?
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.
What are the risks of CVE-2024-57868?
The risks of CVE-2024-57868 include potential exposure of sensitive data and weakened cryptographic protections due to inadequate randomness.
Which versions of Perl Web::API are affected by CVE-2024-57868?
CVE-2024-57868 affects all versions of Perl Web::API up to and including 2.8.
What library is linked to the vulnerability in CVE-2024-57868?
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.