CVE-2025-2814Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libcrypt-cbc-perl | Fix pending | UBUNTU-CVE-2025-2814 | |
| Ubuntu 26.04 | libcrypt-cbc-perl | Under investigation | UBUNTU-CVE-2025-2814 | |
| Ubuntu 25.10 | libcrypt-cbc-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-2814 | |
| Ubuntu 24.04 | libcrypt-cbc-perl | Under investigation | UBUNTU-CVE-2025-2814 | |
| Ubuntu 22.04 | libcrypt-cbc-perl | Under investigation | UBUNTU-CVE-2025-2814 | |
| Ubuntu 20.04 | libcrypt-cbc-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-2814 | |
| Ubuntu 18.04 | libcrypt-cbc-perl | Fix pending | UBUNTU-CVE-2025-2814 | |
| Ubuntu 16.04 | libcrypt-cbc-perl | Fix pending | UBUNTU-CVE-2025-2814 | |
| Debian 14 | libcrypt-cbc-perl | Fixed | 3.07-1 | DEBIAN-CVE-2025-2814 |
| Debian 13 | libcrypt-cbc-perl | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-2814 | |
| Debian 12 | libcrypt-cbc-perl | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-2814 | |
| Red Hat Enterprise Linux 7 | perl-Crypt-CBC | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LDS Crypt::CBC: affected: 1.21 to 3.05
Solution: 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
Vendor advisories:
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.