{"id":"CVE-2024-57868","details":"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.","modified":"2026-03-13T07:57:45.701534Z","published":"2025-04-05T16:15:33.180Z","references":[{"type":"WEB","url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20"},{"type":"WEB","url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348"},{"type":"WEB","url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537"},{"type":"WEB","url":"https://perldoc.perl.org/functions/rand"},{"type":"WEB","url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57868.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"2.8"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"}]}