{"id":"CVE-2024-52322","aliases":["EUVD-2024-54366","GHSA-23rf-wq7x-gvq7"],"status":"published","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.","severity":{"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","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00304,"percentile":0.23457,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-331","CWE-338"],"published":"2025-04-05T16:19:16Z","modified":"2026-06-17T08:07:00Z","products":[{"vendor":"localshop","product":"webservice::xero"},{"vendor":"localshop","product":"webservice\\"}],"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"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52322"},{"url":"https://github.com/advisories/GHSA-23rf-wq7x-gvq7"}],"sources":{"cve":[{"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.","status":"published","published":"2025-04-05T16:19:16.49Z","modified":"2025-09-05T13:18:07.029Z","cvss":[{"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","level":"medium","assessor":"adp"}],"cwes":["CWE-338","CWE-331"],"updated_at":"2026-11-02T14:34:03.333404Z"}],"euvd":[{"id":"EUVD-2024-54366","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.","status":"published","published":"2025-04-05T16:19:16Z","modified":"2025-09-05T13:18:07Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-02T20:31:46.9428Z"}],"ghsa":[{"id":"GHSA-23rf-wq7x-gvq7","title":"WebService::Xero 0.11 and earlier for Perl uses the rand() function as the default source of...","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.","status":"published","published":"2025-04-07T15:31:11Z","modified":"2025-09-05T15:31:07Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-331","CWE-338"],"updated_at":"2026-11-02T15:03:29.995439Z"}],"nvd":[{"id":"CVE-2024-52322","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.","status":"published","published":"2025-04-05T17:15:39.513Z","modified":"2026-06-17T08:07:00.743Z","cvss":[{"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","level":"medium","assessor":"secondary"}],"cwes":["CWE-331","CWE-338"],"updated_at":"2026-11-02T14:10:46.40251Z"}]}}
