{"id":"CVE-2024-56370","aliases":["EUVD-2024-54365","GHSA-h236-32wj-mg7x"],"status":"published","title":"Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions","description":"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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.00355,"percentile":0.29563,"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-05T18:26:22Z","modified":"2026-06-17T08:12:07Z","products":[{"vendor":"elliott","product":"net::xero"}],"references":[{"url":"https://perldoc.perl.org/functions/rand"},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537"},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58"},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56370"},{"url":"https://github.com/advisories/GHSA-h236-32wj-mg7x"}],"sources":{"cve":[{"id":"CVE-2024-56370","title":"Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions","description":"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.","status":"published","published":"2025-04-05T18:26:22.102Z","modified":"2025-09-05T13:18:38.369Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-338","CWE-331"],"updated_at":"2026-11-02T14:33:57.983942Z"}],"euvd":[{"id":"EUVD-2024-54365","description":"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.","status":"published","published":"2025-04-05T18:26:22Z","modified":"2025-09-05T13:18:38Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:31:46.9428Z"}],"ghsa":[{"id":"GHSA-h236-32wj-mg7x","title":"Net::Xero 0.044 and earlier for Perl uses the rand() function as the default source of entropy,...","description":"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.","status":"published","published":"2025-04-05T21:30:22Z","modified":"2025-09-05T15:32:17Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-331","CWE-338"],"updated_at":"2026-11-02T15:03:30.514996Z"}],"nvd":[{"id":"CVE-2024-56370","description":"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.","status":"published","published":"2025-04-05T19:15:38.857Z","modified":"2026-06-17T08:12:07.627Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-331","CWE-338"],"updated_at":"2026-11-02T14:10:46.40251Z"}]}}
