Medium severity5.5NVD Advisory· Published Apr 5, 2025· Updated Jun 17, 2026
CVE-2024-57868
CVE-2024-57868
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
3- LEV/Web::APIv5Range: 0
- Range: <=2.8
Patches
Vulnerability mechanics
References
5- metacpan.org/dist/Web-API/source/lib/Web/API.pmnvdProduct
- metacpan.org/dist/Web-API/source/lib/Web/API.pmnvdProduct
- metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pmnvdProduct
- perldoc.perl.org/functions/randnvdProduct
- security.metacpan.org/docs/guides/random-data-for-security.htmlnvdProduct
News mentions
0No linked articles in our index yet.