{"id":"CVE-2024-52322","published":"2025-04-05T16:19:16Z","modified":"2025-09-05T13:18:07Z","title":"WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions","vendor":"LOCALSHOP","product":"WebService::Xero","tier":"tail","description":{"text":"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.\n\nSpecifically WebService::Xero uses the Data::Random library which specifically states that it is \"Useful mostly for test programs\". Data::Random uses the rand() function.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00566,"percentile":0.40751,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":[]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L17","tags":[]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L178","tags":[]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L13","tags":[]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L93","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":8.15},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"localshop","affectedVersions":[{"vendor":"LOCALSHOP","product":"WebService::Xero","versions":["<= 0.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-07T14:31:25.607874Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-54366","exploited":false,"provenance":"source"}}