{"id":"UBUNTU-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. 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.","modified":"2026-05-20T16:19:59.341832389Z","published":"2025-04-05T16:15:00Z","upstream":["CVE-2024-57868"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-57868"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-57868"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/28503730/"},{"type":"REPORT","url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20"},{"type":"REPORT","url":"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348"},{"type":"REPORT","url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537"},{"type":"REPORT","url":"https://perldoc.perl.org/functions/rand"},{"type":"REPORT","url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"}],"affected":[{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libweb-api-perl","binary_version":"2.2.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}},{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-1","2.5-1","2.6-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6-1","binary_name":"libweb-api-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}},{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libweb-api-perl","binary_version":"2.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}},{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7-2","2.7-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libweb-api-perl","binary_version":"2.7-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}},{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libweb-api-perl","binary_version":"2.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}},{"package":{"name":"libweb-api-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libweb-api-perl","binary_version":"2.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"}}],"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"},{"type":"Ubuntu","score":"medium"}]}