CVE-2024-56370 json
Net::Xero 0.044 and earlier for Perl uses insecure rand() function for cryptographic functions
published 2025-04-05 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-54365
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
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.
Specifically Net::Xero uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected products
- ELLIOTT Net::Xero
Classification
References
- perldoc.perl.org /functions/rand
- security.metacpan.org /docs/guides/random-data-for-security.html
- metacpan.org /release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537
- metacpan.org /release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L58
- metacpan.org /release/ELLIOTT/Net-Xero-0.44/source/lib/Net/Xero.pm#L9
Sources
- CVE List CVE-2024-56370
- NVD CVE-2024-56370
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.