Skip to content

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

MediumCVSS 4.0 EPSS 0.20%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/libcrypt-cbc-perl(Debian 12) = 3.04-3; = 3.07-1; All versions No fix listed No fix yet
debian/libcrypt-cbc-perl(Debian 13) = 3.04-3; = 3.07-1; All versions No fix listed No fix yet
ubuntu/libcrypt-cbc-perl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libcrypt-cbc-perl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libcrypt-cbc-perl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libcrypt-cbc-perl(Ubuntu 26.10) All versions No fix listed No fix yet
debian/libcrypt-cbc-perl(Debian 14) < 3.07-1; = 3.04-3 3.07-1 Fixed
LDS Crypt::CBC >= 1.21, <= 3.05 after 3.05 Fixed

Affected products

ProductAffected versionsFixed in
debian/libcrypt-cbc-perl(Debian:12) All versions No fix listed
debian/libcrypt-cbc-perl(Debian:12) = 3.04-3 No fix listed
debian/libcrypt-cbc-perl(Debian:12) = 3.07-1 No fix listed
debian/libcrypt-cbc-perl(Debian:13) All versions No fix listed
debian/libcrypt-cbc-perl(Debian:13) = 3.04-3 No fix listed
debian/libcrypt-cbc-perl(Debian:13) = 3.07-1 No fix listed
debian/libcrypt-cbc-perl(Debian:14) < 3.07-1 3.07-1
debian/libcrypt-cbc-perl(Debian:14) = 3.04-3 No fix listed
LDS Crypt::CBC >= 1.21, <= 3.05 No fix listed
ubuntu/libcrypt-cbc-perl(Ubuntu:22.04) All versions No fix listed
ubuntu/libcrypt-cbc-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libcrypt-cbc-perl(Ubuntu:26.04) All versions No fix listed
ubuntu/libcrypt-cbc-perl(Ubuntu:26.10) All versions No fix listed

References