CVE-2024-57868CWE-331CWE-338

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

Medium · published April 5, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
22.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00305 · 22.1th percentile
Weaknesses
CWE-331 · Insufficient Entropy; CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Published
2025-04-05T15:35Z
EPSS history
Timeline
  • 05 APR 15:35Z
    Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions
    cvelistv5