{"id":"CVE-2025-2814","published":"2025-04-12T23:41:48Z","modified":"2025-09-05T13:21:32Z","title":"Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions","vendor":"LDS","product":"Crypt::CBC","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00201,"percentile":0.10221,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-329","name":"Generation of Predictable IV with CBC Mode"},{"id":"CWE-331","name":"Insufficient Entropy"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[]},{"url":"https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[]},{"url":"https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch","tags":["patch"]}],"priority":{"score":4.8,"factors":[{"name":"EPSS percentile","points":2.04},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"lds","affectedVersions":[{"vendor":"LDS","product":"Crypt::CBC","versions":[">= 1.21, <= 3.05"]}],"solutions":{"items":["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"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T18:21:53.532777Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-10846","exploited":false,"provenance":"source"}}