Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting libweb-api-perl package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.31% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-LIBWEBAPIPERL-9667314
  • published6 Apr 2025
  • disclosed5 Apr 2025

Introduced: 5 Apr 2025

CVE-2024-57868  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

There is no fixed version for Debian:13 libweb-api-perl.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libweb-api-perl package and not the libweb-api-perl package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.