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

Medium 4.0 Published Updated

Crypt::CBC may use insecure random numbers for encryption if /dev/urandom is unavailable, weakening cryptographic security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-2814?

CVE-2025-2814 is a medium-severity vulnerability in LDS Crypt::CBC, published on 12 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-338, CWE-331, CWE-329

Which versions are affected by CVE-2025-2814?

Linux distribution packages (1)
perl-Crypt-CBC openSUSE:TumbleweedAll versions3.70.0-1.1

How do I fix CVE-2025-2814?

Upgrade to a fixed version.

Is CVE-2025-2814 being exploited?

There is no known exploitation of CVE-2025-2814 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-2814, GHSA-xpfq-7j72-x4px, UBUNTU-CVE-2025-2814, openSUSE-SU-2025:15495-1.

Is CVE-2025-2814 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free