Skip to content
OpenAdvisories
Medium · 4.0 CVE-2025-2814 EUVD-2025-10846GHSA-xpfq-7j72-x4px

Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions

Published Apr 12, 2025 · Updated Sep 5, 2025 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
LDS Crypt::CBC 1.21 – ≤ 3.05 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcrypt-cbc-perl 3.07-1 —
Debian 13 libcrypt-cbc-perl No fix yet —
Debian 12 libcrypt-cbc-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libcrypt-cbc-perl No fix yet —
Ubuntu 26.04 LTS libcrypt-cbc-perl No fix yet —
Ubuntu 25.10 libcrypt-cbc-perl No fix yet —
Ubuntu 24.04 LTS libcrypt-cbc-perl No fix yet —
Ubuntu 22.04 LTS libcrypt-cbc-perl No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libcrypt-cbc-perl No fix yet —
Ubuntu 18.04 LTS libcrypt-cbc-perl No fix yet —
Ubuntu 16.04 LTS libcrypt-cbc-perl No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-Crypt-CBC 3.70.0-1.1 openSUSE-SU-2025:15495-1

Advisories 1

References