
Cloud Vulnerability DB
A community-led vulnerabilities database
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 (NVD).
The vulnerability stems from the use of Perl's built-in rand() function through the Data::Random library for generating random values. The rand() function is seeded by only 32-bits (4 bytes), and its output can be predicted easily, making it unsuitable for cryptographic purposes. This implementation is used in the nonce generation functionality of Web::API, which is critical for security operations (Perl Docs, Security Guide). The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L) (NVD).
The use of a predictable random number generator in cryptographic functions can lead to compromised security mechanisms. Attackers could potentially predict generated values, leading to compromised authentication tokens, session identifiers, or other security-critical random values (Security Guide).
Applications using Web::API should upgrade to a version that uses cryptographically secure random number generation. For developers requiring secure random data, recommended alternatives include Crypt::URandom, Crypt::SysRandom, or Sys::GetRandom modules, which properly utilize the operating system's secure random number generation facilities (Security Guide).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."