{"id":"CVE-2025-2814","summary":"Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions","details":"Crypt::CBC versions between 1.21 and 3.05 for Perl may use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.\n\nThis issue affects operating systems where \"/dev/urandom'\" is unavailable.  In that case, Crypt::CBC will fallback to use the insecure rand() function.","modified":"2026-07-08T06:53:22.842852613Z","published":"2025-04-12T23:41:48.511Z","related":["openSUSE-SU-2025:15495-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2814.json","cna_assigner":"CPANSec","cwe_ids":["CWE-329","CWE-331","CWE-338"]},"references":[{"type":"WEB","url":"https://cpan.org/modules"},{"type":"WEB","url":"https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777"},{"type":"WEB","url":"https://perldoc.perl.org/functions/rand"},{"type":"WEB","url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2814.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2814"},{"type":"FIX","url":"https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch"},{"type":"PACKAGE","url":"https://github.com/lstein/Lib-Crypt-CBC"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cpan-authors/Lib-Crypt-CBC","events":[{"introduced":"0"},{"fixed":"37111f7cd894bcec46156ba7f40a49c126ebf535"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"1.21"},{"last_affected":"3.05"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2814.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}