{"id":"CVE-2025-1828","summary":"Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions","details":"Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions.\n\nIf the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available Crypt::Random will default to use the insecure Crypt::Random::rand provider.\n\nIn particular, Windows versions of perl will encounter this issue by default.","modified":"2026-08-12T03:51:47.277292383Z","published":"2025-03-10T23:51:33.279Z","database_specific":{"cna_assigner":"CPANSec","cwe_ids":["CWE-331","CWE-338"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1828.json"},"references":[{"type":"WEB","url":"https://perldoc.perl.org/functions/rand"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1828.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1828"},{"type":"FIX","url":"https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05"},{"type":"FIX","url":"https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl-crypt-openpgp/crypt-random","events":[{"introduced":"0"},{"fixed":"1f8b29e9e89d8d083fd025152e76ec918136cc05"}],"database_specific":{"cpe":"cpe:2.3:a:timlegge:crypt\\:\\:random:*:*:*:*:*:perl:*:*","extracted_events":[{"introduced":"1.05"},{"last_affected":"1.55"}],"source":["CPE_RANGE","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1828.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}