5.5medium
WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WebService-Xero | up to 0.11 | CVE List |
| localshop webservice::xero | up to 0.11 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
WebService::Xero 0.11 y versiones anteriores para Perl utilizan la función rand() como fuente predeterminada de entropía, la cual no es criptográficamente segura para funciones criptográficas. Específicamente, WebService::Xero utiliza la librería Data::Random, que indica específicamente que es útil principalmente para programas de prueba. Data::Random utiliza la función rand().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-52322 changed 2025-09-05 | CVE Terms of Use |
| NVD | CVE-2024-52322 changed 2026-06-17 | Public domain |