{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-52322","id":"CVE-2024-52322","title":"WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions","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.\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.","descriptionLong":"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.","published":"2025-04-05T16:19:16.490Z","updated":"2026-06-17T08:07:00.743Z","reserved":"2025-03-26T14:00:56.456Z","status":"Analyzed","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"CISA-ADP"}],"rating":"medium","products":["LOCALSHOP WebService::Xero"],"affectedProducts":[{"vendor":"LOCALSHOP","product":"WebService::Xero","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"0.11","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-338","CWE-331"],"aliases":[],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":["Product"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["Product"]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":["Product"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L17","tags":["Product"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L178","tags":["Product"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L13","tags":["Product"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L93","tags":["Product"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00304,"epssPercentile":0.23765,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-52322","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52322","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-52322","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-52322","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}