CVE-2024-58040
9.1critical
Crypt::RandomEncryption for Perl uses insecure rand() function during encryption
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Crypt-RandomEncryption | from 0.01 up to * | CVE List |
| qwer crypt::randomencryption | 0.01 | NVD |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58040 changed 2025-09-30 | CVE Terms of Use |
| NVD | CVE-2024-58040 changed 2026-06-17 | Public domain |