CVEfocus › CVE database › CVE-2025-2814

CVE-2025-2814Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for…

CVSS 4.0 MediumEPSS 0.3% (higher than 15% of CVEs)Published 2025-04-12Updated 2025-09-05Assigner: CPANSec

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.

CWE-329CWE-331CWE-338

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

1Fixed
3Fix pending
3Under investigation
5Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcrypt-cbc-perlFix pendingUBUNTU-CVE-2025-2814
Ubuntu 26.04libcrypt-cbc-perlUnder investigationUBUNTU-CVE-2025-2814
Ubuntu 25.10libcrypt-cbc-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-2814
Ubuntu 24.04libcrypt-cbc-perlUnder investigationUBUNTU-CVE-2025-2814
Ubuntu 22.04libcrypt-cbc-perlUnder investigationUBUNTU-CVE-2025-2814
Ubuntu 20.04libcrypt-cbc-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-2814
Ubuntu 18.04libcrypt-cbc-perlFix pendingUBUNTU-CVE-2025-2814
Ubuntu 16.04libcrypt-cbc-perlFix pendingUBUNTU-CVE-2025-2814
Debian 14libcrypt-cbc-perlFixed3.07-1DEBIAN-CVE-2025-2814
Debian 13libcrypt-cbc-perlWill 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 12libcrypt-cbc-perlWill 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 7perl-Crypt-CBCWill 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.

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

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.