CVE-2024-52322

WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions

Published Apr 5, 2025 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-54366 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.
History
Type Values Removed Values Added
Weaknesses CWE-331
Type Values Removed Values Added
First Time appeared Localshop
Localshop webservice\
CPEs cpe:2.3:a:localshop:webservice\:\:xero:*:*:*:*:*:perl:*:*
Vendors & Products Localshop
Localshop webservice\
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions
Weaknesses CWE-338
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Sep 5, 2025, 1:18 PM
Reserved
Mar 26, 2025, 2:00 PM
Status
Analyzed
Published
Apr 5, 2025, 5:15 PM
Modified
Jun 17, 2026, 8:07 AM