Skip to content
OpenAdvisories
Medium · 5.5 CVE-2024-57868 EUVD-2024-54369GHSA-gfj4-2p4p-m25j

Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions

Published Apr 5, 2025 · Updated Sep 5, 2025 · Assigned by CPANSec

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.

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.

Affected products

VendorProductAffectedFixed
LEV Web::API ≤ 2.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libweb-api-perl No fix yet —
Debian 13 libweb-api-perl No fix yet —
Debian 12 libweb-api-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libweb-api-perl No fix yet —
Ubuntu 26.04 LTS libweb-api-perl No fix yet —
Ubuntu 25.10 libweb-api-perl No fix yet —
Ubuntu 24.04 LTS libweb-api-perl No fix yet —
Ubuntu 22.04 LTS libweb-api-perl No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libweb-api-perl No fix yet —
Ubuntu 18.04 LTS libweb-api-perl No fix yet —

References