CVE-2024-56370 Details
Description
Net::Xero 0.044 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Net::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 the Net::Xero Perl module, specifically in versions through 0.044, due to the use of the rand() function as the default entropy source for cryptographic operations. This approach relies on a non-cryptographically secure random number generator, which can lead to predictable outcomes. The Data::Random library, utilized by Net::Xero, explicitly states its randomness is suitable mainly for testing purposes. This vulnerability could be exploited by anyone using the affected module in a context requiring secure random data, such as generating tokens or keys for authentication or encryption.
Users can upgrade to Net::Xero version 0.045 or later, which addresses this vulnerability by using a secure source of randomness for cryptographic functions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 5, 2025CISA-ADP
Assessed Apr 14, 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537 | CPANSec | Source CodeVendor |
| https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58 | CPANSec | Source CodeVendor |
| https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9 | CPANSec | Source CodeVendor |
| https://perldoc.perl.org/functions/rand | CPANSec | Not Applicable |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | CPANSec | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-331 | Insufficient Entropy | CPANSec |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| BAREFOOT Data::Random | All versions |
CPE
Remediation
| |
| ELLIOTT Net::Xero | <= 0.044 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | CVE Modified | CPANSec |
| Apr 14, 2025 | CVE Modified | CISA-ADP |
| Apr 5, 2025 | New CVE Received | CPANSec |
Volerion