{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-57868","id":"CVE-2024-57868","title":"Web::API 2.8 and earlier for Perl uses insecure rand() function 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.","descriptionLong":"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-05T15:35:05.802Z","updated":"2026-06-17T08:14:06.990Z","reserved":"2025-03-26T14:00:56.441Z","status":"Analyzed","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["LEV Web::API"],"affectedProducts":[{"vendor":"LEV","product":"Web::API","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"2.8","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-338","CWE-331"],"aliases":[],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":["Product","web"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["Product","web"]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":["Product","web"]},{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20","tags":["Product","web"]},{"url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348","tags":["Product","web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00312,"epssPercentile":0.24652,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-57868","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57868","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-57868","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-57868","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}