CVE-2024-57868: Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions

Published Apr 5, 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.

Affected Software

2 affected components
Perl Web::API<=2.8
Lev Web\<=2.8

Event History

Apr 5, 2025
CVE Published
via MITRE·03:35 PM
Data Sourced
via MITRE·03:35 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203