{"id":"CVE-2025-2814","state":"PUBLISHED","title":"Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions","description":"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.","publishedAt":"2025-04-12T23:41:48.511Z","updatedAt":"2025-09-05T13:21:32.700Z","severity":{"score":4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"CPANSec","products":["LDS Crypt::CBC"],"affected":[{"vendor":"LDS","product":"Crypt::CBC","packageName":"Crypt-CBC","defaultStatus":"unaffected","versions":[{"version":"1.21","status":"affected","lessThanOrEqual":"3.05","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/CBC.pm"],"repo":"https://github.com/lstein/Lib-Crypt-CBC"}],"references":["https://perldoc.perl.org/functions/rand","https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777","https://security.metacpan.org/docs/guides/random-data-for-security.html","https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch"],"weaknesses":["CWE-338","CWE-329","CWE-331"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/2xxx/CVE-2025-2814.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-2814","state":"PUBLISHED","datePublished":"2025-04-12T23:41:48.511Z","dateUpdated":"2025-09-05T13:21:32.700Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2025-03-26T13:51:26.476Z"},"containers":{"cna":{"title":"Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"LDS","product":"Crypt::CBC","packageName":"Crypt-CBC","defaultStatus":"unaffected","versions":[{"version":"1.21","status":"affected","lessThanOrEqual":"3.05","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/CBC.pm"],"repo":"https://github.com/lstein/Lib-Crypt-CBC"}],"references":[{"url":"https://perldoc.perl.org/functions/rand"},{"url":"https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777"},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"},{"url":"https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-329","description":"CWE-329 Generation of Predictable IV with CBC Mode","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:21:32.700Z"},"credits":[{"lang":"en","type":"finder","value":"Robert Rothenberg (RRWO)"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Users should update to a fixed version, or apply the patch provided in the references section, or use a patched version provided by their OS distribution"}],"value":"Users should update to a fixed version, or apply the patch provided in the references section, or use a patched version provided by their OS distribution"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-04-14T18:21:53.532777Z","id":"CVE-2025-2814","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","type":"CWE","lang":"en","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-14T18:22:27.371Z"}}]}}}