{"id":"CVE-2024-57868","published":"2025-04-05T15:35:05Z","modified":"2025-09-05T13:18:59Z","title":"Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions","vendor":"LEV","product":"Web::API","tier":"tail","description":{"text":"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.\n\nSpecifically Web::API uses the Data::Random library which specifically states that it is \"Useful mostly for test programs\". Data::Random uses the rand() function.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00538,"percentile":0.3878,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":[]},{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20","tags":[]},{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348","tags":[]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.76},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"lev","affectedVersions":[{"vendor":"LEV","product":"Web::API","versions":["<= 2.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-07T14:34:20.328851Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-54369","exploited":false,"provenance":"source"}}