{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-58040","id":"CVE-2024-58040","title":"Crypt::RandomEncryption for Perl uses insecure rand() function during encryption","description":"Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.","descriptionLong":"Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.","published":"2025-09-29T23:54:22.953Z","updated":"2026-06-17T08:14:29.507Z","reserved":"2025-03-26T14:00:56.315Z","status":"Analyzed","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"}],"rating":"critical","products":["QWER Crypt::RandomEncryption"],"affectedProducts":[{"vendor":"QWER","product":"Crypt::RandomEncryption","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"*","status":"affected","version":"0.01","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-338","CWE-331"],"aliases":[],"references":[{"url":"https://metacpan.org/release/QWER/Crypt-RandomEncryption-0.01/source/lib/Crypt/RandomEncryption.pm#L33","tags":["Broken Link","Product"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["related","Third Party Advisory"]},{"url":"https://perldoc.perl.org/functions/rand","tags":["related","Third Party Advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00237,"epssPercentile":0.14885,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58040","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58040","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-58040","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-58040","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}