{"id":"CVE-2024-56370","published":"2025-04-05T18:26:22Z","modified":"2025-09-05T13:18:38Z","title":"Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions","vendor":"ELLIOTT","product":"Net::Xero","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00355,"percentile":0.30057,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":[]},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58","tags":[]},{"url":"https://metacpan.org/release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9","tags":[]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":6.01},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"elliott","affectedVersions":[{"vendor":"ELLIOTT","product":"Net::Xero","versions":["<= 0.44"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T17:44:45.535548Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-54365","exploited":false,"provenance":"source"}}