# CVE-2024-56370: Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2025-04-05T18:26:22.102Z
- Modified: 2026-06-17T08:12:07.627Z
- Weaknesses: CWE-331, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Net-Xero: up to 0.44

## References

- <https://perldoc.perl.org/functions/rand>
- <https://security.metacpan.org/docs/guides/random-data-for-security.html>
- <https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537>
- <https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58>
- <https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9>

## Sources

- CVE List: [CVE-2024-56370](https://www.cve.org/CVERecord?id=CVE-2024-56370), CVE Terms of Use, modified 2025-09-05
- NVD: [CVE-2024-56370](https://nvd.nist.gov/vuln/detail/CVE-2024-56370), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56370 · Whole record: https://cve.day/CVE-2024-56370.json · Rebuilt by cve.day 2026-11-25T22:58:52.481Z
