{"id":"CVE-2024-57868","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-57868","generatedAt":"2026-10-28T00:20:21.381Z","title":"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.","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.\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.","published":"2025-04-05T16:15:33.000Z","lastModified":"2026-06-17T08:14:07.000Z","status":"Analyzed","sourceIdentifier":"9b29abf9-4ab0-4765-b253-1875cd9b441e","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"},"cwe":["CWE-331","CWE-338"],"affected":["lev/web\\"],"epss":{"score":0.00305,"percentile":0.23114,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.30%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20","tags":["Product"],"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348","tags":["Product"],"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":["Product"],"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://perldoc.perl.org/functions/rand","tags":["Product"],"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["Product"],"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-57868","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}