{"id":"CVE-2025-1828","state":"PUBLISHED","title":"Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions","description":"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.","publishedAt":"2025-03-10T23:51:33.279Z","updatedAt":"2025-09-09T13:56:40.704Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["perl Crypt::Random"],"affected":[{"vendor":"perl","product":"Crypt::Random","packageName":"Crypt-Random","defaultStatus":"unaffected","versions":[{"version":"1.05","status":"affected","lessThan":"1.56","versionType":"custom"}],"programFiles":["lib/Crypt/Random/Provider/rand.pm"]}],"references":["https://perldoc.perl.org/functions/rand","https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1","https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05"],"weaknesses":["CWE-338","CWE-331"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/1xxx/CVE-2025-1828.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-1828","state":"PUBLISHED","datePublished":"2025-03-10T23:51:33.279Z","dateUpdated":"2025-09-09T13:56:40.704Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2025-03-01T15:39:14.682Z"},"containers":{"cna":{"title":"Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"perl","product":"Crypt::Random","packageName":"Crypt-Random","defaultStatus":"unaffected","versions":[{"version":"1.05","status":"affected","lessThan":"1.56","versionType":"custom"}],"programFiles":["lib/Crypt/Random/Provider/rand.pm"]}],"references":[{"url":"https://perldoc.perl.org/functions/rand"},{"url":"https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1"},{"url":"https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-331","description":"CWE-331 Insufficient Entropy","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2025-09-05T13:19:50.864Z"},"credits":[{"lang":"en","type":"finder","value":"Robert Rothenberg (RRWO)"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Upgrade to version 1.56 or higher"}],"value":"Upgrade to version 1.56 or higher"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.8,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-03-11T02:20:07.985063Z","id":"CVE-2025-1828","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-09-09T13:56:40.704Z"}}]}}}