{"id":"CVE-2024-52322","aliases":["CVE-2024-52322"],"related":[],"kind":"vulnerability","state":"published","title":"WebService::Xero 0.11 for Perl uses insecure rand() function for cryptographic functions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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().","source":"nvd"}],"published":"2025-04-05T16:19:16.490Z","modified":"2026-06-17T08:07:00.743Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-331","CWE-338"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.11","status":"affected"}],"vendor":"LOCALSHOP","product":"WebService::Xero","package":"WebService-Xero","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.11"}],"vendor":"localshop","product":"webservice::xero","cpe":"cpe:2.3:a:localshop:webservice\\:\\:xero:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L17","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent.pm#L178","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L13","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/LOCALSHOP/WebService-Xero-0.11/source/lib/WebService/Xero/Agent/PublicApplication.pm#L93","tags":["product"],"sources":["cvelist","nvd"]}],"credits":["Robert Rothenberg (RRWO)"],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-07T14:31:25.607Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52322","url":"https://www.cve.org/CVERecord?id=CVE-2024-52322","licence":"CVE Terms of Use","modified":"2025-09-05T13:18:07.029Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52322","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52322","licence":"Public domain","modified":"2026-06-17T08:07:00.743Z"}],"updatedAt":"2026-11-25T22:58:52.481Z","epss":{"score":0.00304,"percentile":0.24954,"date":"2026-12-01T12:00:22.000Z"}}