# CVE-2024-58040: Crypt::RandomEncryption for Perl uses insecure rand() function during encryption

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-09-29T23:54:22.953Z
- Modified: 2026-06-17T08:14:29.507Z
- Weaknesses: CWE-331, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.

(As written by CVE List.)

## Affected

- Crypt-RandomEncryption: from 0.01 up to *
- qwer crypt::randomencryption: 0.01

## References

- <https://metacpan.org/release/QWER/Crypt-RandomEncryption-0.01/source/lib/Crypt/RandomEncryption.pm#L33> (broken-link, product)
- <https://security.metacpan.org/docs/guides/random-data-for-security.html> (related, third-party-advisory)
- <https://perldoc.perl.org/functions/rand> (related, third-party-advisory)

## Sources

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

---

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