# CVE-2024-52322: WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- 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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-04-05T16:19:16.490Z
- Modified: 2026-06-17T08:07:00.743Z
- Weaknesses: CWE-331, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- WebService-Xero: up to 0.11
- localshop webservice::xero: up to 0.11

## References

- <https://perldoc.perl.org/functions/rand> (product)
- <https://security.metacpan.org/docs/guides/random-data-for-security.html> (product)
- <https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537> (product)
- <https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L17> (product)
- <https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L178> (product)
- <https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L13> (product)
- <https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L93> (product)

## Sources

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

---

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