# CVE-2024-58036: Net::Dropbox::API 1.9 and earlier for Perl uses insecure rand() function for cryptographic functions

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-04-05T16:06:53.758Z
- Modified: 2026-06-17T08:14:29.360Z
- Weaknesses: CWE-331, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

Net::Dropbox::API 1.9 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.

Specifically Net::Dropbox::API uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.

(As written by CVE List.)

## Affected

- Net-Dropbox-API: up to 1.9
- norbu09 net::dropbox::api: up to 1.9

## References

- <https://perldoc.perl.org/functions/rand> (product)
- <https://security.metacpan.org/docs/guides/random-data-for-security.html> (product)
- <https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537> (product)
- <https://metacpan.org/release/NORBU/Net-Dropbox-API-1.9/source/lib/Net/Dropbox/API.pm#L385> (product)
- <https://metacpan.org/release/NORBU/Net-Dropbox-API-1.9/source/lib/Net/Dropbox/API.pm#L11> (product)

## Sources

- CVE List: [CVE-2024-58036](https://www.cve.org/CVERecord?id=CVE-2024-58036), CVE Terms of Use, modified 2025-09-05
- NVD: [CVE-2024-58036](https://nvd.nist.gov/vuln/detail/CVE-2024-58036), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58036 · Whole record: https://cve.day/CVE-2024-58036.json · Rebuilt by cve.day 2026-11-25T22:58:52.480Z
