CVE-2024-52322 Details
Description
WebService::Xero 0.11 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically WebService::Xero uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
A vulnerability exists in WebService::Xero versions through 0.11 for Perl, where the rand() function is used as the default source of entropy for cryptographic functions. This approach is not cryptographically secure, as the rand() function can produce predictable outputs. The vulnerability is exacerbated by the fact that WebService::Xero relies on the Data::Random library, which is explicitly stated to be suitable only for test programs. This insecure randomness can lead to predictable cryptographic tokens or keys, undermining the security of applications that use this library.
Users should update to a version of WebService::Xero that does not rely on the rand() function for cryptographic operations. Additionally, when using Perl, consider employing modules like Crypt::URandom, Crypt::Random, or Math::Random::Secure for secure random data generation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
| CWE-331 | Insufficient Entropy | CPANSec |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| localshop webservice::xero | <= 0.11 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Nov 13, 2025 | Modified Analysis | [email protected] |
| Sep 5, 2025 | CVE Modified | CPANSec |
| Apr 10, 2025 | Initial Analysis | [email protected] |
| Apr 7, 2025 | CVE Modified | CISA-ADP |
| Apr 5, 2025 | New CVE Received | CPANSec |