CVE-2024-58040: Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.
CVE-2024-58040 is a critical-severity flaw (CVSS 9.1) affecting crypt\. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-58040?
crypt\: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-58040 being exploited?
CVE-2024-58040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-58040 affect?
CVE-2024-58040 affects crypt\. Severity is critical (CVSS 9.1). Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.
How urgent is CVE-2024-58040?
Priority 41/100. Critical severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-5086 HIGH 7.5 UPGRADE Crypt::SecretBuffer versions before 0.019 for Perl is suseceptible to timing attacks. For example, if Crypt::
- CVE-2026-8463 MEDIUM 5.3 UPGRADE Crypt::Argon2 versions from 0.017 before 0.031 for Perl perform a heap out-of-bounds read in argon2_verify on
- CVE-2026-58102 CRITICAL 9.1 UPGRADE Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate ext
- CVE-2026-58101 HIGH 7.5 UPGRADE Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference. X50
- CVE-2025-15444 CRITICAL 9.8 UPGRADE Crypt::Sodium::XS module versions prior to 0.000042, for Perl, include a vulnerable version of libsodium libs