{"id":"CVE-2024-56370","aliases":["CVE-2024-56370"],"related":[],"kind":"vulnerability","state":"published","title":"Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions","summary":"Net::Xero 0.044 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.\n\nSpecifically Net::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":"Net::Xero 0.044 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.\n\nSpecifically Net::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":"Net::Xero 0.044 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. En concreto, Net::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-05T18:26:22.102Z","modified":"2026-06-17T08:12:07.627Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-331","CWE-338"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.44","status":"affected"}],"vendor":"ELLIOTT","product":"Net::Xero","package":"Net-Xero","source":"cvelist"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[],"sources":["cvelist","nvd"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":[],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58","tags":[],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9","tags":[],"sources":["cvelist","nvd"]}],"credits":["Robert Rothenberg (RRWO)"],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-14T17:44:45.535Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56370","url":"https://www.cve.org/CVERecord?id=CVE-2024-56370","licence":"CVE Terms of Use","modified":"2025-09-05T13:18:38.369Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56370","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56370","licence":"Public domain","modified":"2026-06-17T08:12:07.627Z"}],"updatedAt":"2026-11-25T22:58:52.481Z","epss":{"score":0.00355,"percentile":0.31309,"date":"2026-12-01T12:00:22.000Z"}}