{"id":"CVE-2025-2814","aliases":["DEBIAN-CVE-2025-2814","EUVD-2025-10846","GHSA-xpfq-7j72-x4px","UBUNTU-CVE-2025-2814","openSUSE-SU-2025:15495-1"],"status":"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.","severity":{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.00201,"percentile":0.1011,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-329","CWE-331","CWE-338"],"published":"2025-04-12T23:41:48Z","modified":"2026-10-28T02:31:04Z","fixes":[{"ecosystem":"Debian:14","package":"libcrypt-cbc-perl","fixed_in":["3.07-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"perl-Crypt-CBC","fixed_in":["3.70.0-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04-3","3.07-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04-3","3.07-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.07-1"}]}],"versions":["3.04-3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.33-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.33-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.33-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.33-2","3.04-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04-3"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04-3","3.07-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.07-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcrypt-cbc-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.07-1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"perl-Crypt-CBC","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.70.0-1.1"}]}]}],"products":[{"vendor":"lds","product":"crypt::cbc"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":["web","report"]},{"url":"https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777","tags":["web","report"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["web","report"]},{"url":"https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch","tags":["patch","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2814","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xpfq-7j72-x4px"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2814.json","tags":["advisory"]},{"url":"https://github.com/lstein/Lib-Crypt-CBC","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-2814","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-2814","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-2814","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/28699380/","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2025-2814","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2025-2814","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.","status":"published","published":"2025-04-12T23:41:48.511Z","modified":"2025-09-05T13:21:32.7Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"adp"}],"cwes":["CWE-338","CWE-329","CWE-331","CWE-338"],"updated_at":"2026-11-02T14:32:38.70481Z"}],"euvd":[{"id":"EUVD-2025-10846","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.","status":"published","published":"2025-04-12T23:41:48Z","modified":"2025-09-05T13:21:32Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T20:31:46.9428Z"}],"ghsa":[{"id":"GHSA-xpfq-7j72-x4px","title":"Crypt::CBC versions between 1.21 and 3.04 for Perl may use the rand() function as the default...","description":"Crypt::CBC versions between 1.21 and 3.04 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.","status":"published","published":"2025-04-13T00:30:22Z","modified":"2025-09-05T15:31:07Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-329","CWE-338"],"updated_at":"2026-11-02T15:03:29.995439Z"}],"nvd":[{"id":"CVE-2025-2814","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.","status":"published","published":"2025-04-13T00:15:14.997Z","modified":"2026-06-17T09:07:39.95Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-329","CWE-331","CWE-338"],"updated_at":"2026-11-02T14:11:00.456643Z"}],"osv":[{"id":"CVE-2025-2814","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.","status":"published","published":"2025-04-12T23:41:48.511Z","modified":"2026-10-28T02:31:04.977234632Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-329","CWE-331","CWE-338"],"updated_at":"2026-11-02T15:44:47.708311Z"},{"id":"DEBIAN-CVE-2025-2814","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.  This issue affects operating systems where \"/dev/urandom'\" is unavailable.  In that case, Crypt::CBC will fallback to use the insecure rand() function.","status":"published","published":"2025-04-13T00:15:14.997Z","modified":"2026-09-01T20:05:45.425122052Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:45.870237Z"},{"id":"UBUNTU-CVE-2025-2814","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. This issue affects operating systems where \"/dev/urandom'\" is unavailable. In that case, Crypt::CBC will fallback to use the insecure rand() function.","status":"published","published":"2025-04-13T00:15:00Z","modified":"2026-10-17T12:56:49.875454167Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T16:55:26.330196Z"},{"id":"openSUSE-SU-2025:15495-1","title":"perl-Crypt-CBC-3.70.0-1.1 on GA media","description":"These are all security issues fixed in the perl-Crypt-CBC-3.70.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-08-27T00:00:00Z","modified":"2026-03-23T04:53:51.227664Z","updated_at":"2026-11-02T16:58:37.810934Z"}]}}
